Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Discipline != null ? Discipline.GetHashCode() : 0) * 397) ^ (Key != null ? Key.GetHashCode() : 0));
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Date.GetHashCode() ^ 7
            * Discipline.GetHashCode() ^ 11
            * LeagueName.GetHashCode() ^ 17
            * MatchHomeName.GetHashCode() ^ 19
            * MatchAwayName.GetHashCode() ^ 23
            * PickChoice.GetHashCode() ^ 29
            * PickValue.GetHashCode() ^ 31);
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = LicenseIssuerId?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Discipline?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ CompetitionClass;
         hashCode = (hashCode * 397) ^ (Value?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (RoleName?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = LicenseIssuerId?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (LicenseDiscipline?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (LicenseKey?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (VenueCode?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Discipline?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (DistanceDiscipline?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Distance;
         hashCode = (hashCode * 397) ^ Date.GetHashCode();
         hashCode = (hashCode * 397) ^ Time.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)Level;
         hashCode = (hashCode * 397) ^ (Elems != null ? Elems.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsOnEvenWeek.GetHashCode();
         hashCode = (hashCode * 397) ^ (Discipline != null ? Discipline.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Teacher != null ? Teacher.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Place != null ? Place.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ BeginTime.GetHashCode();
         hashCode = (hashCode * 397) ^ Duration.GetHashCode();
         hashCode = (hashCode * 397) ^ (Notation != null ? Notation.GetHashCode() : 0);
         return(hashCode);
     }
 }