public override int GetHashCode() { int hash = 1; if (AppName.Length != 0) { hash ^= AppName.GetHashCode(); } if (AppVersion.Length != 0) { hash ^= AppVersion.GetHashCode(); } if (AppChannel.Length != 0) { hash ^= AppChannel.GetHashCode(); } if (SdkVersion.Length != 0) { hash ^= SdkVersion.GetHashCode(); } hash ^= ExtensionInfo.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (AppName.Length != 0) { hash ^= AppName.GetHashCode(); } if (BuildVersion.Length != 0) { hash ^= BuildVersion.GetHashCode(); } if (MachineId.Length != 0) { hash ^= MachineId.GetHashCode(); } if (Bundle.Length != 0) { hash ^= Bundle.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hashCode = (AppName != null ? AppName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AppLocation != null ? AppLocation.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AppArguments != null ? AppArguments.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AppIcon != null ? AppIcon.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EnabledMods != null ? EnabledMods.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Priority != null?Priority.GetHashCode() : 0; hashCode = (hashCode * 397) ^ Version.GetHashCode(); hashCode = (hashCode * 397) ^ EventTime.GetHashCode(); hashCode = (hashCode * 397) ^ (Hostname != null ? Hostname.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AppName != null ? AppName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ProcessId != null ? ProcessId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MessageId != null ? MessageId.GetHashCode() : 0); return(hashCode); } }
/// <summary> /// Derive hashcode from immutable variables /// </summary> /// <returns>the integer haschode of this app cast item</returns> public override int GetHashCode() { return(Version.GetHashCode() * 17 + AppName.GetHashCode()); }