/// <summary> /// Returns a hash code for this <see cref="Country" />. /// </summary> /// <returns> /// The hash code for this <see cref="Country" /> instance. /// </returns> public override int GetHashCode() { return(CSharp.GetHashCode(Name)); }
/// <summary> /// Returns a hash code for this <see cref="Option" />. /// </summary> /// <returns> /// The hash code for this <see cref="Option" /> instance. /// </returns> public override int GetHashCode() { return(CSharp.GetHashCode(Arguments.Concat(Alternatives).ToArray())); }
/// <summary> /// Returns a hash code for the specified object, based on the <see cref="HashCode" /> delegate. If the property is <see langword="null" />, a default hash code algorithm is used. /// </summary> /// <param name="obj">The <see cref="object" /> for which a hash code is to be returned.</param> /// <returns> /// A hash code for the specified object. /// </returns> public int GetHashCode(T obj) { return(HashCode?.Invoke(obj) ?? CSharp.GetHashCode(obj)); }
/// <summary> /// Returns a hash code for this <see cref="QuotedString" />. /// </summary> /// <returns> /// The hash code for this <see cref="QuotedString" /> instance. /// </returns> public override int GetHashCode() { return(CSharp.GetHashCode(OriginalString)); }
/// <summary> /// Returns a hash code for this <see cref="Range{T}" />. /// </summary> /// <returns> /// The hash code for this <see cref="Range{T}" /> instance. /// </returns> public override int GetHashCode() { return(CSharp.GetHashCode(Min, Max)); }
/// <summary> /// Returns a hash code for this <see cref="City" />. /// </summary> /// <returns> /// The hash code for this <see cref="City" /> instance. /// </returns> public override int GetHashCode() { return(CSharp.GetHashCode(Country, Name, Subdivision1Name, Subdivision2Name, TimeZone)); }