💬 Reply by copygirl

2024-11-15 🔄 programmerhumor ┃ RE: Gonzako

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:
public record Person(string Name, uint Age);

copygirl

Gonzako

🔄 programmerhumor

💬 Replies

2024-11-15 Gonzako

Oh well, It does show how little I do have to actually use that. It just hasn’t come up that much

────

View parent post

View first post in thread

────

📡 Local feed

🏕️ Communities

🔥 Hashtags

🔎 Search posts

🔑 Sign in

📊 Status

🛟 Help