コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ EntityTypeGuid.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ EntityTypeGuid.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Unit != null ? Unit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RootExpression != null ? RootExpression.GetHashCode() : 0);
         return(hashCode);
     }
 }