Vereinsmeisterschaften  22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
Loading...
Searching...
No Matches
PersonStartWithoutIsActiveEqualityComparer.cs
2{
6 public class PersonStartWithoutIsActiveEqualityComparer : IEqualityComparer<PersonStart>
7 {
14 public bool Equals(PersonStart x, PersonStart y)
15 {
16 if (ReferenceEquals(x, y)) return true;
17 if (ReferenceEquals(x, null)) return false;
18 if (ReferenceEquals(y, null)) return false;
19 if (x.GetType() != y.GetType()) return false;
20
21 return (x.PersonObj, x.Style, x.Time).Equals((y.PersonObj, y.Style, y.Time));
22 }
23
29 public int GetHashCode(PersonStart obj)
30 => obj == null ? 0 : (obj.PersonObj, obj.Style, obj.Time).GetHashCode();
31 }
32}
Class describing a start of a person.
Definition PersonStart.cs:9
TimeSpan Time
Time the person needed during the race of this start.
Comparer that compares a PersonStart without regarding the PersonStart.IsActive
int GetHashCode(PersonStart obj)
Get the hash code for a PersonStart object ignoring the PersonStart.IsActive property.
bool Equals(PersonStart x, PersonStart y)
Check if two PersonStart objects are equal ignoring the PersonStart.IsActive property.