public override int GetHashCode() { return(EmailOrNumber.GetHashCode() + ID.GetHashCode() + Number.GetHashCode() + Type.GetHashCode()); }
public bool Equals(ContactInfos other) { ContactInfos info = (ContactInfos)other; return(EmailOrNumber.Equals(info.EmailOrNumber) && ID.Equals(info.ID) && Number.Equals(info.Number) && Type.Equals(info.Type)); }