public override int GetHashCode() { int hash = 1; if (FirstName.Length != 0) { hash ^= FirstName.GetHashCode(); } if (SecondName.Length != 0) { hash ^= SecondName.GetHashCode(); } if (IsAlive != false) { hash ^= IsAlive.GetHashCode(); } if (Age != 0) { hash ^= Age.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return((FirstName?.GetHashCode() ?? 0 * 397) ^ ((SecondName?.GetHashCode() ?? 0) * 397) ^ ((ThirdName?.GetHashCode() ?? 0) * 397) ^ DateOfBirth.GetHashCode()); }
public override int GetHashCode() { return(SecondName is null ? new Random().GetHashCode() : SecondName.GetHashCode()); }
public override int GetHashCode() => FirstName.GetHashCode() ^ SecondName?.GetHashCode() ?? 0 ^ FirstBirthDate.GetHashCode() ^ SecondBirthDate.GetHashCode();