public override int GetHashCode()
        {
            if (Id != 0)
            {
                return(Id.GetHashCode());
            }

            return(AnInt.GetHashCode() +
                   (AString?.GetHashCode() ?? 0) +
                   (NullableInt?.GetHashCode() ?? 0) +
                   (OfficialName?.GetHashCode() ?? 0));
        }
Esempio n. 2
0
 // override object.GetHashCode
 public override int GetHashCode()
 {
     return(AnInt.GetHashCode() ^ NullableHashCode(AString));
 }