Exemple #1
0
        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));
        }
Exemple #2
0
 public PhoneNumber(int id, string number, PhoneType type)
 {
     ID     = id;
     Number = number;
     Type   = type;
 }