示例#1
0
 public override int GetHashCode()
 {
     return(FirstName.GetHashCode() ^ MiddleName.GetHashCode()
            ^ LastName.GetHashCode() ^ Address.GetHashCode()
            ^ Email.GetHashCode() ^ MobilePhone.GetHashCode()
            ^ Ssn.GetHashCode());
 }
        public override int GetHashCode()
        {
            int prime = 31;
            int hash  = 7;

            hash = prime * hash + Ssn.GetHashCode() + Code.GetHashCode() + StartTime.GetHashCode() + EndTime.GetHashCode();
            return(hash);
        }
示例#3
0
        public override int GetHashCode()
        {
            int prime = 31;
            int hash  = 7;

            hash = prime * hash + Ssn.GetHashCode();
            return(hash);
        }
示例#4
0
 // Dictionaries and Hashsets use hash code to compare elements
 public override int GetHashCode() => Ssn.GetHashCode();
示例#5
0
 public override int GetHashCode()
 {
     return(FirstName.GetHashCode() ^ MiddleName.GetHashCode() ^ LastName.GetHashCode() ^ Ssn.GetHashCode() ^
            PermanentAddress.GetHashCode() ^ Email.GetHashCode() ^ University.GetHashCode() ^ Faculty.GetHashCode() ^
            Specialty.GetHashCode() ^ Curs.Nume.GetHashCode());
 }
示例#6
0
 public override int GetHashCode()
 {
     return(Name.GetHashCode() ^ Ssn.GetHashCode());
 }
示例#7
0
 public override int GetHashCode()
 {
     return(FirstName.GetHashCode() ^ LastName.GetHashCode() ^ Ssn.GetHashCode());
 }