} //End Equals (object) /// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode( ) { return(IIN.GetHashCode( )); } //End GetHashCode ( )
} //End CompareTo (CreditCard) #endregion #region IEquatable<CreditCard> implementation /// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns> /// <see langword="true" /> if the current object is equal to the <paramref name="other" /> parameter; otherwise, <see langword="false" />. /// </returns> public bool Equals(CreditCard other) { return(IIN.Equals(other.IIN) && Expiration.Equals(other.Expiration)); }