コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Number;
         hashCode = (hashCode * 397) ^ (PO != null ? PO.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Nested.GetHashCode();
         return(hashCode);
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Number;
         hashCode = (hashCode * 397) ^ (Text != null ? Text.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Nested != null ? Nested.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (List != null ? List.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Array != null ? Array.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Dictionary != null ? Dictionary.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IgnoreInt;
         hashCode = (hashCode * 397) ^ PrivateInt;
         hashCode = (hashCode * 397) ^ (Polymorf1 != null ? Polymorf1.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Polymorf2 != null ? Polymorf2.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Custom != null ? Custom.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Struct.GetHashCode();
         return(hashCode);
     }
 }