public override int GetHashCode() { unchecked { var hashCode = Guid.GetHashCode(); hashCode = (hashCode * 397) ^ (DriverName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (TeamName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ Skins.Aggregate(0, (current, skin) => current ^ skin.GetHashCode()).GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = ProjectName?.GetHashCode() ?? 0; hashCode = hashCode * 397 + (DriverName?.GetHashCode() ?? 0); hashCode = hashCode * 397 + (ConfiguredDriverType?.GetHashCode() ?? 0); hashCode = hashCode * 397 + (ConfiguredObjectType?.GetHashCode() ?? 0); hashCode = hashCode * 397 + (ConfiguredDriverExeName?.GetHashCode() ?? 0); hashCode = hashCode * 397 + (ConnectionName?.GetHashCode() ?? 0); hashCode = hashCode * 397 + (NetAddress?.GetHashCode() ?? 0); hashCode = hashCode * 397 + (PrimaryIpAddress?.GetHashCode() ?? 0); hashCode = hashCode * 397 + PortNumber; hashCode = hashCode * 397 + UnitId; hashCode = hashCode * 397 + Offset.GetHashCode(); hashCode = hashCode * 397 + (int)StartOffset; hashCode = hashCode * 397 + IsEnabled.GetHashCode(); hashCode = hashCode * 397 + IsSerial.GetHashCode(); hashCode = hashCode * 397 + IsMultiMaster.GetHashCode(); hashCode = hashCode * 397 + SkipRegister.GetHashCode(); return(hashCode); } }