Beispiel #1
0
 public void AddPhoneDevices(PhoneDevice phoneDevice)
 {
     _phoneDevices.Add(phoneDevice);
 }
Beispiel #2
0
 //public virtual PhoneDevice AddToCarriers(List<Carrier> carriers)
 //{
 //    foreach (var carrier in carriers)
 //    {
 //        Carriers.Add(carrier);
 //    }
 //    return this;
 //}
 public virtual bool Equals(PhoneDevice other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.Id == Id && Equals(other.Name, Name);
 }