コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (BuildConfigId != null ? BuildConfigId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BuildInfos != null ? BuildInfos.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #2
0
ファイル: BuildInfo.cs プロジェクト: RG4421/TeamCityApi
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (Number != null ? Number.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BuildConfigId != null ? BuildConfigId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CommitHash != null ? CommitHash.GetHashCode() : 0);
         return(hashCode);
     }
 }