public override int GetHashCode() { unchecked { var hashCode = Name?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ IsPlayer.GetHashCode(); hashCode = (hashCode * 397) ^ (CarId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (SkinId?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Name?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (Team?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (CarId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (CarSkinId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ IsConnected.GetHashCode(); hashCode = (hashCode * 397) ^ IsBookedForPlayer.GetHashCode(); return(hashCode); } }