This eliminates the need to define a new class with custom properties.
It defines equality by the value of three elements, which the barebones class cannot do without special coding. This plus the fact that it is immutable makes it a reasonable candidate for a hash key in the Dictionary
.
One of the drawbacks is that the properties are vanilla Item1
, Item2
, etc., so they do not provide any context to the values inside them, where properties like ID
, Name
, Age
will be.
source share