Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (parentCategory_ != null)
            {
                hash ^= ParentCategory.GetHashCode();
            }
            hash ^= propertyTypes_.GetHashCode();
            return(hash);
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked {
         return(((Key != null ? Key.GetHashCode() : 0) * 397) ^ (ParentCategory != null ? ParentCategory.GetHashCode() : 0));
     }
 }