Side note: You should probably not use setters in record type properties - as being immutable is kind of the main point of record in the first place.
C# 9.0 introduces record types, which are a reference type that provides synthesized methods to provide value semantics for equality. Records are immutable by default.
Yeah, I've seen your post about init only properties, but that's not the point of my comment - the point is that (IMHO) records shouldn't have setters on their properties.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Side note: You should probably not use setters in record type properties - as being immutable is kind of the main point of record in the first place.
You should probably change
to
I have addressed this already in my previous blog dev.to/wrijugh/c-9-0-init-only-pro...
Yeah, I've seen your post about init only properties, but that's not the point of my comment - the point is that (IMHO) records shouldn't have setters on their properties.