Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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));
 }
Ejemplo n.º 3
0
 /// <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);
 }