public int CompareTo(object obj) { var propertyMap = obj as PropertyMap; if (propertyMap == null) { return(1); } return(OrdinalPosition.CompareTo(propertyMap.OrdinalPosition)); }
/// <summary> /// Returns the hash code for this object. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { int hashCode = -1182503711; hashCode = hashCode * -1521134295 + base.GetHashCode(); hashCode = hashCode * -1521134295 + OrdinalPosition.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ColumnDefault); hashCode = hashCode * -1521134295 + IsNullable.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DataType); hashCode = hashCode * -1521134295 + MaxLength.GetHashCode(); hashCode = hashCode * -1521134295 + NumericPrecision.GetHashCode(); return(hashCode); }
public int CompareTo(ColumnInfo other) { return(OrdinalPosition.CompareTo(other.OrdinalPosition)); }