Releases: diegofrata/Generator.Equals
Releases · diegofrata/Generator.Equals
2.7.2
What's Changed
- Fix comparison to support deep equality on non-sealed types. by @diegofrata in #39
Full Changelog: 2.7.1...2.7.2
2.7.1
2.7.0
2.6.0
What's Changed
- Support for record structs by @wainwrightmark in #33
- Add support for structs. by @diegofrata in #34
New Contributors
- @wainwrightmark made their first contribution in #33
Full Changelog: 2.5.1...2.6.0
2.5.1
What's Changed
Full Changelog: 2.5.0...2.5.1
2.5.0
What's Changed
- feat: Added EquatableAttribute.IgnoreInhertiedMembers parameter, allowing users to control whether the generator uses or ignores members inherited from the base class/record. by @HavenDV in #30
- chore: Added snapshot tests everywhere and also added some extra tests by @diegofrata in #29
Full Changelog: 2.4.0...2.5.0
2.4.0
The generator now allows you to explicitly specify which properties are used to generate the IEquatable
.
To do this, set the Explicit
property of EquatableAttribute
to true
and specify the required properties using DefaultEqualityAttribute
or other attributes.
using Generator.Equals;
[Equatable(Explicit = true)]
partial class MyClass
{
// Only this property will be used for equality!
[DefaultEquality]
public string Name { get; set; } = "Konstantin";
public string Description { get; set; } = "";
}
Thanks to @HavenDV for this contribution!
2.3.2
Allow collection comparers to be reused with custom item equality.
2.3.1
Fix for ArgumentException in EqualsGenerator caused by multiple partial classes/records.