public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (PropertyPath != null ? PropertyPath.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PivotKey != null ? PivotKey.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DisplayColumn != null ? DisplayColumn.GetHashCode() : 0); return(hashCode); } }
public PivotKey(PivotKey parent, PropertyPath propertyPath, object value) { Parent = parent; if (null != parent) { Length = parent.Length + 1; } PropertyPath = propertyPath; Value = value; if (null != Parent) { Length = Parent.Length + 1; _hashCode = Parent.GetHashCode(); } else { Length = 1; } _hashCode = _hashCode * 397 ^ PropertyPath.GetHashCode(); if (Value != null) { _hashCode = _hashCode * 397 ^ Value.GetHashCode(); } }