示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = DataId;
         hashCode = (hashCode * 397) ^ DataObjectId.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)DataType;
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = DataObjectId.GetHashCode();
         // Suitable nullity checks etc, of course :)
         hash = (Id != null) ? hash * 17 + Id.GetHashCode() : hash;
         hash = (Name != null) ? hash * 17 + Name.GetHashCode() : hash;
         hash = hash * 17 + ItemSubjectRef.GetHashCode();
         hash = hash * 17 + IsCollection.GetHashCode();
         return(hash);
     }
 }
示例#3
0
 protected bool Equals(IdentifyClass other)
 {
     return(DataId == other.DataId && DataObjectId.Equals(other.DataObjectId) && DataType == other.DataType);
 }