public override int GetHashCode() { unchecked { int hashCode = (ParentId != null ? ParentId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FirstChildId != null ? FirstChildId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (NextSiblingId != null ? NextSiblingId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DataId != null ? DataId.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (Type.Length != 0) { hash ^= Type.GetHashCode(); } if (IsDimension != false) { hash ^= IsDimension.GetHashCode(); } if (IsHidden != false) { hash ^= IsHidden.GetHashCode(); } if (NextSiblingId.Length != 0) { hash ^= NextSiblingId.GetHashCode(); } if (ParentId.Length != 0) { hash ^= ParentId.GetHashCode(); } if (HeaderId.Length != 0) { hash ^= HeaderId.GetHashCode(); } if (format_ != null) { hash ^= Format.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }