you are viewing a single comment's thread
view the rest of the comments
[–] 12 points 2 years ago (1 child)

Assuming this is C#, you could just make Reservation a record type, which can be defined with a one line primary constructor, is immutable and has value type equality. Second example is an insane amount of boilerplate.

  • source
  • hideshow 2 child comments