// Returns a hashcode. public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hash = 17; // Suitable nullity checks etc, of course :) hash = hash * 23 + OriginalName.GetHashCode(); hash = hash * 23 + Domain.GetHashCode(); foreach (IObject obj in objects) { hash = hash * 23 + obj.GetHashCode(); } foreach (IIntention intention in intentions) { hash = hash * 23 + intention.GetHashCode(); } foreach (IPredicate pred in initial) { hash = hash * 23 + pred.GetHashCode(); } foreach (IPredicate pred in goal) { hash = hash * 23 + pred.GetHashCode(); } return(hash); } }
/// <summary> /// Returns the hashcode for this <see cref="Parameter"/>. /// </summary> /// <returns>The hashcode value.</returns> public override int GetHashCode() { if (this.hashCode != null) { return(this.hashCode.Value); } // Set and return the hashcode return((this.hashCode = OriginalName.GetHashCode()).Value); }
public override int GetHashCode() { unchecked { int result = (OriginalName != null ? OriginalName.GetHashCode() : 0); result = (result * 397) ^ (MapToName != null ? MapToName.GetHashCode() : 0); result = (result * 397) ^ CreationSettingType.GetHashCode(); return(result); } }
public override int GetHashCode() { unchecked { int hashCode = (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (OriginalName != null ? OriginalName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Constructors != null ? Constructors.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Type != 0) { hash ^= Type.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (OriginalName.Length != 0) { hash ^= OriginalName.GetHashCode(); } if (Table.Length != 0) { hash ^= Table.GetHashCode(); } if (OriginalTable.Length != 0) { hash ^= OriginalTable.GetHashCode(); } if (Schema.Length != 0) { hash ^= Schema.GetHashCode(); } if (Catalog.Length != 0) { hash ^= Catalog.GetHashCode(); } if (Collation != 0UL) { hash ^= Collation.GetHashCode(); } if (FractionalDigits != 0) { hash ^= FractionalDigits.GetHashCode(); } if (Length != 0) { hash ^= Length.GetHashCode(); } if (Flags != 0) { hash ^= Flags.GetHashCode(); } if (ContentType != 0) { hash ^= ContentType.GetHashCode(); } return(hash); }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ (ContentType != null ? ContentType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (OriginalName != null ? OriginalName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Data != null ? Data.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)Number; hashCode = (hashCode * 397) ^ (OriginalName != null ? OriginalName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Parameters != null ? Parameters.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = GeneratedLineNumber; hashCode = (hashCode * 397) ^ GeneratedColumnNumber; hashCode = (hashCode * 397) ^ OriginalLineNumber.GetHashCode(); hashCode = (hashCode * 397) ^ OriginalColumnNumber.GetHashCode(); hashCode = (hashCode * 397) ^ (OriginalName != null ? OriginalName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (OriginalFileName != null ? OriginalFileName.GetHashCode() : 0); return(hashCode); } }
/// <summary> /// Returns the hashcode for this <see cref="Parameter"/>. /// </summary> /// <returns>The hashcode value.</returns> public override int GetHashCode() { if (m_hashCode != null) { return(m_hashCode.Value); } var hashCode = 0; // Set the hashcode hashCode = OriginalName.GetHashCode(); // Set and return the hashcode return((m_hashCode = hashCode).Value); }
public override int GetHashCode() { return(OriginalName.GetHashCode()); }