コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 23;
         hash = hash * 37 + (Name != null ? Name.GetHashCode() : 0);
         hash = hash * 37 + (ShortName != null ? ShortName.GetHashCode() : 0);
         hash = hash * 37 + (Logo != null ? Logo.GetHashCode() : 0);
         hash = hash * 37 + (Coach != null ? Coach.GetHashCode() : 0);
         hash = hash * 37 + Color.GetHashCode();
         hash = hash * 37 + (Players != null ? Players.GetHashCode() : 0);
         return(hash);
     }
 }
コード例 #2
0
ファイル: Team.cs プロジェクト: MihaMarkic/KzsRestService
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 23;
         hash = hash * 37 + (Name != null ? Name.GetHashCode() : 0);
         hash = hash * 37 + (ShortName != null ? ShortName.GetHashCode() : 0);
         hash = hash * 37 + (City != null ? City.GetHashCode() : 0);
         hash = hash * 37 + (Arena != null ? Arena.GetHashCode() : 0);
         hash = hash * 37 + (Coach != null ? Coach.GetHashCode() : 0);
         hash = hash * 37 + (Players != null ? Players.GetHashCode() : 0);
         hash = hash * 37 + (LastResults != null ? LastResults.GetHashCode() : 0);
         hash = hash * 37 + (Fixtures != null ? Fixtures.GetHashCode() : 0);
         return(hash);
     }
 }