public override int GetHashCode() { unchecked { int result = Type.GetHashCode(); result = (result * 397) ^ (ObjectPath != null ? ObjectPath.GetHashCode() : 0); result = (result * 397) ^ Index; return(result); } }
public override int GetHashCode() { unchecked // Overflow is fine { int hash = 17; hash = hash * 23 + (Format.HasValue ? Format.Value.GetHashCode() : 0); hash = hash * 23 + (ObjectPath != null ? ObjectPath.GetHashCode() : 0); hash = hash * 23 + (TargetType != null ? TargetType.GetHashCode() : 0); return(hash); } }