public override int GetHashCode() { unchecked { var result = Nazev?.GetHashCode() ?? 0; result = (result * 397) ^ ICO?.GetHashCode() ?? 0; result = (result * 397) ^ Rc?.GetHashCode() ?? 0; result = (result * 397) ^ Role?.GetHashCode() ?? 0; return(result); } }
public override int GetHashCode() { //return base.GetHashCode(); int iHashCode = 0; if (Nazev != null) { iHashCode = Nazev.GetHashCode(); } return(iHashCode); }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> /// <filterpriority>2</filterpriority> public override int GetHashCode() { unchecked { int result = (Nazev != null ? Nazev.GetHashCode() : 0); result = (result * 397) ^ FormatWordu.GetHashCode(); result = (result * 397) ^ Zmeneno.GetHashCode(); result = (result * 397) ^ (KontrolniSoucet != null ? KontrolniSoucet.GetHashCode() : 0); result = (result * 397) ^ (Adresar != null ? Adresar.GetHashCode() : 0); return(result); } }
private static void seradit(int c) { Nazev nz = porovnej; for (int i = 0; i < p.pocetPrvku; i++) { for (int j = 0; j < p.pocetPrvku - 1; j++) { if (nz(p.pole[i], p.pole[j], c)) { Student tmp = p.pole[i]; p.pole[i] = p.pole[j]; p.pole[j] = tmp; } } } }
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); } }