/// <summary> /// Determines if two PhoneNumber objects are equal. /// </summary> /// <param name="other">The other phone number.</param> /// <returns><c>true</c> if equal, <c>false</c> otherwise.</returns> public bool Equals(PhoneNumber other) { return AreaCode.Equals(other.AreaCode) && ExchangeCode.Equals(other.ExchangeCode) && SubscriberNumber.Equals(other.SubscriberNumber); }
/// <summary> /// Determines if two PhoneNumber objects are equal. /// </summary> /// <param name="other">The other phone number.</param> /// <returns><c>true</c> if equal, <c>false</c> otherwise.</returns> public bool Equals(PhoneNumber other) { return(AreaCode.Equals(other.AreaCode) && ExchangeCode.Equals(other.ExchangeCode) && SubscriberNumber.Equals(other.SubscriberNumber)); }
/// <summary> /// Adds a phone number. /// </summary> /// <param name="key">The key.</param> /// <param name="phoneNumber">The phone number.</param> public virtual void AddPhoneNumber(string key, PhoneNumber phoneNumber) { this.phoneNumbers.Add(key, phoneNumber); }