public override int GetHashCode() { int result; result = IndexPropName.GetHashCode(); result = 31 * result + CoercionType.GetHashCode(); return result; }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> /// <filterpriority>2</filterpriority> public override int GetHashCode() { unchecked { return (((IndexPropName != null ? IndexPropName.GetHashCode() : 0) * 397) ^ (CoercionType != null ? CoercionType.GetHashCode() : 0)); } }
public override bool Equals(object o) { if (this == o) { return true; } if (o == null || GetType() != o.GetType()) { return false; } var that = (IndexedPropDesc) o; if (CoercionType != that.CoercionType) { return false; } if (!IndexPropName.Equals(that.IndexPropName)) { return false; } return true; }
public int CompareTo(Object o) { var other = (IndexedPropDesc)o; return(IndexPropName.CompareTo(other.IndexPropName)); }