public void HasValueEqualitySemantics() { var type = new TypeName("B", new TypeName("A")); type.ShouldEqual(type); type.ShouldEqual(new TypeName("B", new TypeName("A"))); type.ShouldNotEqual(new TypeName("B")); type.GetHashCode().ShouldEqual(new TypeName("B", new TypeName("A")).GetHashCode()); type.GetHashCode().ShouldNotEqual(new TypeName("B").GetHashCode()); }
public override int GetHashCode() { unchecked { return(((TypeName != null ? TypeName.GetHashCode() : 0) * 397) ^ (ContactId != null ? ContactId.GetHashCode() : 0)); } }
public override int GetHashCode() { return(DescKind.GetHashCode() ^ TypeName.GetHashCode() ^ Namespace.GetHashCode() ^ MemberName.GetHashCode()); }
public override int GetHashCode() { unchecked { return(((Namespace != null ? Namespace.GetHashCode() : 0) * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0)); } }
/// <summary> /// Gets Hash Code /// </summary> /// <returns></returns> public override int GetHashCode() { unchecked { return((TypeName.GetHashCode() * 397) ^ Version.GetHashCode()); } }
public override int GetHashCode() { int hash = 1; if (Id != 0) { hash ^= Id.GetHashCode(); } if (OuterId != 0) { hash ^= OuterId.GetHashCode(); } if (TypeName.Length != 0) { hash ^= TypeName.GetHashCode(); } if (Message.Length != 0) { hash ^= Message.GetHashCode(); } if (hasFullStack_ != null) { hash ^= HasFullStack.GetHashCode(); } if (Stack.Length != 0) { hash ^= Stack.GetHashCode(); } hash ^= parsedStack_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { return(((TypeName != null ? TypeName.GetHashCode() : 0) * 397) ^ (Pointer != null ? Pointer.GetHashCode() : 0)); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); if (Equipment != null) { hash = hash * 59 + Equipment.GetHashCode(); } if (TypeName != null) { hash = hash * 59 + TypeName.GetHashCode(); } if (Description != null) { hash = hash * 59 + Description.GetHashCode(); } return(hash); } }
public override int GetHashCode() { unchecked { return((TypeName.GetHashCode() * 397) ^ IndexStoragePath.GetHashCode()); } }
public override int GetHashCode() { int hash = 1; if (ExistingObjectKey != 0) { hash ^= ExistingObjectKey.GetHashCode(); } if (NewObjectKey != 0) { hash ^= NewObjectKey.GetHashCode(); } if (ExistingTypeKey != 0) { hash ^= ExistingTypeKey.GetHashCode(); } if (NewTypeKey != 0) { hash ^= NewTypeKey.GetHashCode(); } if (TypeName.Length != 0) { hash ^= TypeName.GetHashCode(); } if (Payload.Length != 0) { hash ^= Payload.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <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> /// <inheritdoc /> public override int GetHashCode() { unchecked { return((AssemblyId.GetHashCode() * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0)); } }
public override int GetHashCode() { unchecked { return(((DotNetType?.GetHashCode() ?? 0) * 397) ^ (TypeName?.GetHashCode() ?? 0)); } }
public override int GetHashCode() { unchecked { return((TypeName.GetHashCode() * 397) ^ (FieldName.GetHashCode() * 17)); } }
public override int GetHashCode() { unchecked { var hash = TypeName.GetHashCode() * 397; hash = hash ^ (FieldName.GetHashCode() * 7); return(hash); } }
public override int GetHashCode() { unchecked { var hashCode = TypeName.GetHashCode(); hashCode = (hashCode * 397) ^ ParameterName.GetHashCode(); hashCode = (hashCode * 397) ^ EnumMember.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var result = (ProjectId != null ? ProjectId.GetHashCode() : 0); result = (result * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0); result = (result * 397) ^ Explicitly.GetHashCode(); return(result); } }
/// <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() { var result = TypeName.GetHashCode(); if (AssemblyName != null) { result ^= AssemblyName.GetHashCode(); } return(result); }
public override int GetHashCode() { unchecked { int hashCode = (TypeName != null ? TypeName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Namespaces != null ? Namespaces.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = TypeName?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (MethodName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ParameterTypes?.Length.GetHashCode() ?? 0); return(hashCode); } }
public sealed override int GetHashCode() { int code = _rowType.GetHashCode() ^ TypeName.GetHashCode(); foreach (string index in _indexNames) { code ^= index.GetHashCode(); } return(code); }
/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns> /// A 32-bit signed integer hash code. /// </returns> /// <filterpriority>2</filterpriority> public override int GetHashCode() { unchecked { int result = base.GetHashCode(); result = (result * 397) ^ (Name != null ? Name.GetHashCode() : 0); result = (result * 397) ^ (Type != null ? Type.GetHashCode() : 0); result = (result * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0); return result; } }
public override int GetHashCode() { unchecked { var hashCode = (Adjacents != null ? Adjacents.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ObjRef.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var result = (TypeName != null ? TypeName.GetHashCode() : 0); result = (result * 457) ^ (AssemblyLocation != null ? AssemblyLocation.GetHashCode() : 0); result = (result * 457) ^ (Id != null ? Id.GetHashCode() : 0); return(result); } }
public override int GetHashCode() { unchecked { var hashCode = (Namespace != null ? Namespace.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TypeNameBase != null ? TypeNameBase.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AssemblyName != null ? AssemblyName.GetHashCode() : 0); return(hashCode); } }
/// <summary>Serves as the default hash function.</summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { unchecked { var hashCode = (_genericArguments != null ? _genericArguments.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Prefix != null ? Prefix.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0); return(hashCode); } }
public sealed override int GetHashCode() { int code = TypeName.GetHashCode(); foreach (string key in _members.Keys) { code ^= key.GetHashCode(); code ^= _members[key].GetHashCode(); } return(code); }
/// <summary> /// Gets the hashcode for this object. /// </summary> /// <returns></returns> public override int GetHashCode() { return(1379870155 ^ Name.GetHashCode() ^ TypeName.GetHashCode() ^ TypeOwner.GetHashCode() ^ DbType.GetHashCode() ^ Length.GetHashCode() ^ Precision.GetHashCode() ^ Scale.GetHashCode()); }
public override int GetHashCode() { int code = TypeName.GetHashCode(); foreach (KeyValuePair <string, int> pair in _legalValues) { code ^= pair.Key.GetHashCode(); code ^= pair.Value.GetHashCode(); } return(code); }
public override int GetHashCode() { unchecked { int hashCode = (TypeName != null ? TypeName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SuperType != null ? SuperType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Rank; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ (Priority.GetHashCode()); hashCode = (hashCode * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Comments != null ? Comments.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { var hash = TypeName.GetHashCode(); hash += SqlText.GetHashCode(); if (Arguments.Length > 0) { hash += Arguments[0].GetHashCode(); } return(hash); }