Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = 14;
         result = 29 * result + Ime.GetHashCode();
         result = 29 * result + Prezime.GetHashCode();
         return(result);
     }
 }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = 14;
         result = 29 * result + Ime.GetHashCode();
         result = 29 * result + Prezime.GetHashCode();
         if (!string.IsNullOrEmpty(SrednjeIme))
         {
             result = 29 * result + SrednjeIme.GetHashCode();
         }
         if (DatumRodjenja != null)
         {
             result = 29 * result + DatumRodjenja.GetHashCode();
         }
         return(result);
     }
 }
Example #3
0
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^ Ime.GetHashCode() ^ Prezime.GetHashCode());
 }