コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = DateProperty.GetHashCode();
         hashCode = (hashCode * 397) ^ DateOffsetProperty.GetHashCode();
         hashCode = (hashCode * 397) ^ BoolProperty.GetHashCode();
         hashCode = (hashCode * 397) ^ IntProperty;
         hashCode = (hashCode * 397) ^ StringProperty.GetHashCode();
         return(hashCode);
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     return(unchecked (this.IntField + this.IntField +
                       ShortField + LongField.GetHashCode() +
                       DoubleField.GetHashCode() +
                       SingleField.GetHashCode() +
                       DecimalField.GetHashCode() +
                       (this.StringProperty ?? "").GetHashCode() +
                       DateProperty.GetHashCode() +
                       DateOffsetProperty.GetHashCode() +
                       (AnyProperty ?? string.Empty).GetHashCode()
                       ));
 }