19 if (ReferenceEquals(x, y))
return true;
20 if (ReferenceEquals(x,
null))
return false;
21 if (ReferenceEquals(y,
null))
return false;
22 if (x.GetType() != y.GetType())
return false;
33 => obj ==
null ? 0 : (obj.Gender, obj.SwimmingStyle, obj.Age).
GetHashCode();
Comparer that only uses the most basic properties of a Competition to determine equality:
bool Equals(Competition x, Competition y)
Check if two Competition objects are equal based on basic properties.
int GetHashCode(Competition obj)
Get the hash code for a Competition object based on basic properties.
Class describing a competition.
Genders Gender
Gender for this competition.
SwimmingStyles SwimmingStyle
Swimming style for this competition.
byte Age
Age for the person that is assigned for this competition.