public override int GetHashCode() { return ((Name != null ? Name.GetHashCode() : 0) + (DeviceID != null ? DeviceID.GetHashCode() : 0) + (WiFi != null ? WiFi.GetHashCode() : 0) + (MQTT != null ? MQTT.GetHashCode() : 0) + (OTA != null ? OTA.GetHashCode() : 0) + (Settings != null ? Settings.Select(item => (item.Key.GetHashCode() + item.Value.GetHashCode()).GetHashCode()).Sum(item => (long)item).GetHashCode() : 0)); }
public override int GetHashCode() { int hash = 1; if (DeviceID.Length != 0) { hash ^= DeviceID.GetHashCode(); } if (PublicKey.Length != 0) { hash ^= PublicKey.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(DeviceID != null ? DeviceID.GetHashCode() : 0); }
public override int GetHashCode() { return(DeviceID.GetHashCode() + Name.GetHashCode() + Port.GetHashCode()); }
/// <summary> /// Returns the hash code for this KeyboardDevice. /// </summary> /// <returns>A 32-bit signed integer hash code.</returns> public override int GetHashCode() { //return base.GetHashCode(); return(NumberOfKeys ^ NumberOfFunctionKeys ^ NumberOfLeds ^ DeviceID.GetHashCode() ^ Description.GetHashCode()); }