コード例 #1
0
ファイル: DataModel.cs プロジェクト: multinetinventiv/routine
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Marks != null ? Marks.GetItemHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ViewModelId != null ? ViewModelId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsList.GetHashCode();
         return(hashCode);
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Marks != null ? Marks.GetItemHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Groups != null ? Groups.GetItemHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ViewModelId != null ? ViewModelId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsList.GetHashCode();
         hashCode = (hashCode * 397) ^ IsOptional.GetHashCode();
         hashCode = (hashCode * 397) ^ (DefaultValue != null ? DefaultValue.GetHashCode() : 0);
         return(hashCode);
     }
 }