/// <summary> /// Determines if two SocialSecurityNumber objects are equal. /// </summary> /// <param name="other">The other number.</param> /// <returns><c>true</c> if equal, <c>false</c> otherwise.</returns> public bool Equals(SocialSecurityNumber other) { return(AreaNumber.Equals(other.AreaNumber) && GroupNumber.Equals(other.GroupNumber) && SerialNumber.Equals(other.SerialNumber)); }
/// <summary> /// Determines if two SocialSecurityNumber objects are equal. /// </summary> /// <param name="other">The other number.</param> /// <returns><c>true</c> if equal, <c>false</c> otherwise.</returns> public bool Equals(SocialSecurityNumber other) { return AreaNumber.Equals(other.AreaNumber) && GroupNumber.Equals(other.GroupNumber) && SerialNumber.Equals(other.SerialNumber); }