/// <summary>
 /// The get hash code.
 /// </summary>
 /// <returns>
 /// The <see cref="int"/>.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         return((EnumerableComparer.GetHashCode(this.Interfaces) * 397) ^ (this.SimplifiedType?.GetHashCode() ?? 0));
     }
 }
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         return((this.Type.GetHashCode() * 397) ^ EnumerableComparer.GetHashCode(this.Literals));
     }
 }
 /// <summary>
 /// The get hash code.
 /// </summary>
 /// <returns>
 /// The <see cref="int"/>.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = this.AllowsAnyColumnName.GetHashCode();
         hashCode = (hashCode * 397) ^ EnumerableComparer.GetHashCode(this.Columns);
         hashCode = (hashCode * 397) ^ (this.Alias?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// The get hash code.
 /// </summary>
 /// <returns>
 /// The <see cref="int"/>.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = EnumerableComparer.GetHashCode(this.Arguments);
         hashCode = (hashCode * 397) ^ (this.Description?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ this.IsAggregateFunction.GetHashCode();
         hashCode = (hashCode * 397) ^ (this.Name?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (this.ReturnType?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
 /// <summary>
 /// The get hash code.
 /// </summary>
 /// <returns>
 /// The <see cref="int"/>.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = EnumerableComparer.GetHashCode(this.Functions);
         hashCode = (hashCode * 397) ^ EnumerableComparer.GetHashCode(this.Messages);
         hashCode = (hashCode * 397) ^ EnumerableComparer.GetHashCode(this.Plugins);
         hashCode = (hashCode * 397) ^ EnumerableComparer.GetHashCode(this.Sources);
         hashCode = (hashCode * 397) ^ EnumerableComparer.GetHashCode(this.Tokens);
         hashCode = (hashCode * 397) ^ EnumerableComparer.GetHashCode(this.Variables);
         return(hashCode);
     }
 }
Exemplo n.º 6
0
 /// <summary>
 /// Gets the hash code based on the elements in the <see cref="IEnumerable{T}"/>.
 /// </summary>
 /// <typeparam name="T">
 /// The type of the elements.
 /// </typeparam>
 /// <param name="obj">
 /// The <see cref="IEnumerable{T}"/>.
 /// </param>
 /// <returns>
 /// The hash code.
 /// </returns>
 public static int GetHashCode <T>(IEnumerable <T> obj)
 {
     return(EnumerableComparer <T> .GetHashCode(obj));
 }