Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 /// <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));
 }
Esempio n. 4
0
 /// <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));
 }
Esempio n. 5
0
 /// <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));
 }
Esempio n. 6
0
 /// <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));
 }