public override int GetHashCode() { var hashCode = -1357408252; hashCode = hashCode * -1521134295 + Locked.GetHashCode(); hashCode = hashCode * -1521134295 + Hidden.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { int hash = 19; hash = hash * 29 + Locked.GetHashCode(); hash = hash * 29 + Hidden.GetHashCode(); return(hash); } }
/// <summary> /// Serves as a hash function for a <see cref="Province"/> object. /// </summary> /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a /// hash table.</returns> public override int GetHashCode() { unchecked { return(((Id != null ? Id.GetHashCode() : 0) * 397) ^ (Name != null ? Name.GetHashCode() : 0) ^ (Description != null ? Description.GetHashCode() : 0) ^ (ResourceId != null ? ResourceId.GetHashCode() : 0) ^ (FactionId != null ? FactionId.GetHashCode() : 0) ^ (SovereignFactionId != null ? SovereignFactionId.GetHashCode() : 0) ^ (Colour != null ? Colour.GetHashCode() : 0) ^ Locked.GetHashCode() ^ Type.GetHashCode()); } }
public override int GetHashCode() { int hashCode = 1745651570; hashCode = hashCode * -1521134295 + Locked.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ProvisioningAPIURL); hashCode = hashCode * -1521134295 + AutoProvisioning.GetHashCode(); hashCode = hashCode * -1521134295 + AutoProvisioningLastActive.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <Duration> .Default.GetHashCode(MinLifetime); hashCode = hashCode * -1521134295 + EqualityComparer <Duration> .Default.GetHashCode(MaxLifetime); hashCode = hashCode * -1521134295 + EqualityComparer <Duration> .Default.GetHashCode(CreationTimeout); hashCode = hashCode * -1521134295 + MinInstances.GetHashCode(); hashCode = hashCode * -1521134295 + MaxInstances.GetHashCode(); hashCode = hashCode * -1521134295 + SystemMaxInstances.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ApplicationVersion); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(BinariesVersion); return(hashCode); }