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); }
public override int GetHashCode() { unchecked { return(((Key != null ? Key.GetHashCode() : 0) * 397) ^ (ParentCategory != null ? ParentCategory.GetHashCode() : 0)); } }