Lombok.NET icon indicating copy to clipboard operation
Lombok.NET copied to clipboard

Equals and GetHashCode generation

Open WinterG26 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. I’m often frustrated when I need to manually implement equality logic for my classes, especially since it involves consistently generating the == and != operators, Equals and GetHashCode methods, and implementing the IEquatable<T> interface. This is particularly important for ensuring accurate and reliable behavior in collections and comparisons but can lead to repetitive, boilerplate code that is easy to overlook.

Describe the solution you'd like It would be incredibly helpful if Lombok.net could automatically generate the == and != operators, Equals and GetHashCode methods, and generate override method for classes that's already implement the IEquatable<T> interface.

WinterG26 avatar Oct 30 '24 03:10 WinterG26

Thanks for this feature request, it seems valid and I will implement it. Unfortunately, due to personal reasons, I won't be able to do so for some time.

CollinAlpert avatar Oct 30 '24 08:10 CollinAlpert