2024-11-15 π programmerhumor β RE: rustyfemboy
Iβve only had to implement equality in C# but that didnβt seem that hard of a problem. you just expand the operator = function
Then you should also override Equals(object), GetHashCode, and implement IEquatable.
[β¦]
Thankfully a lot of the usual boilerplate code can be avoided using a record class or struct:
[β¦]
2024-11-15 porous_grey_matter β 2π¬
Itβs not hard, just if youβre doing it for a struct with a lot of fields itβs a lot of boilerplate
ββββ
ββββ