Generator.Equals
Generator.Equals copied to clipboard
A source code generator for automatically implementing IEquatable<T> using only attributes.
Currently the generator will break with any types defined in C# top-level statement.
And do something at gen-time? Not sure what you can do. README already has examples as partial obviously but they're easily missed.
Another option from https://github.com/Fody/Equals#configurability Needed in some cases in Explicit mode to ignore comparison of base classes.
Hello, Would it be possible to also generate equality members for `struct` ?
Another idea is to remove the runtime dependency, especially for those who don't use custom Comparers. They can be delivered explicitly (with `global::` full typepaths to avoid possible collisions). _Originally...
Create comparer for strings: ```csharp [StringEquality(StringComparison.OrdinalIgnoreCase)] public string Name { get; set; } ```
Would be great to have a wrapper class such that one can have a Comparer collect the difference between say two `record`'s or other supported type. This would also walk...
While experimenting with Generator.Equals, I found that if I try to customize string equality to be case insensitive for a property that is for example an array of strings, the...