public override int GetHashCode()
 {
     unchecked
     {
         var result = Id?.GetHashCode() ?? 0;
         result = (result * 397) ^ (IdPuvodce?.GetHashCode() ?? 0);
         result = (result * 397) ^ (IdOsoby?.GetHashCode() ?? 0);
         result = (result * 397) ^ (SpisovaZnacka?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Nazev?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Role?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Typ?.GetHashCode() ?? 0);
         result = (result * 397) ^ (ICO?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Rc?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Mesto?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Okres?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Zeme?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Psc?.GetHashCode() ?? 0);
         result = (result * 397) ^ (DatumNarozeni?.GetHashCode() ?? 0);
         return(result);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Typ.GetHashCode());
 }