public override bool Equals(object obj) { PhoneType other = obj as PhoneType; if (ReferenceEquals(null, other)) { return(false); } return(ReferenceEquals(this, other) || (ID == other.ID && Name == other.Name)); }
public PhoneNumber(int id, string number, PhoneType type) { ID = id; Number = number; Type = type; }