-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IncrementalGeneraotr and various fixes
- Loading branch information
Showing
6 changed files
with
604 additions
and
622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
|
||
namespace UnitGenerator; | ||
|
||
public readonly struct IgnoreEquality<T>(T value) : IEquatable<IgnoreEquality<T>> | ||
{ | ||
public readonly T Value => value; | ||
|
||
public static implicit operator IgnoreEquality<T>(T value) | ||
{ | ||
return new IgnoreEquality<T>(value); | ||
} | ||
|
||
public static implicit operator T(IgnoreEquality<T> value) | ||
{ | ||
return value.Value; | ||
} | ||
|
||
public bool Equals(IgnoreEquality<T> other) | ||
{ | ||
// always true to ignore equality check. | ||
return true; | ||
} | ||
} |
Oops, something went wrong.