Exemplo n.º 1
0
        public int CompareTo(ContactsData other)
        {
            if (Object.ReferenceEquals(other, null))
            {
                return(1);
            }
            if (Last_name.CompareTo(other.Last_name) == 0)
            {
                return(First_name.CompareTo(other.First_name));
            }

            return(Last_name.CompareTo(other.Last_name));
        }
Exemplo n.º 2
0
 override public int GetHashCode()
 {
     return(User_id.GetHashCode() & First_name.GetHashCode() & Last_name.GetHashCode());
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     return(Id.GetHashCode() & First_name.GetHashCode() & Last_name.GetHashCode());
 }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     return(First_name.GetHashCode() + Last_name.GetHashCode());
 }