Class SignatureComparer
- Namespace
- AsmResolver.DotNet.Signatures
- Assembly
- AsmResolver.DotNet.dll
Provides a mechanism for comparing signatures of members defined in a .NET assembly by their contents.
public class SignatureComparer : IEqualityComparer<CallingConventionSignature>, IEqualityComparer<FieldSignature>, IEqualityComparer<MethodSignature>, IEqualityComparer<PropertySignature>, IEqualityComparer<LocalVariablesSignature>, IEqualityComparer<GenericInstanceMethodSignature>, IEqualityComparer<byte[]>, IEqualityComparer<MemberReference>, IEqualityComparer<IMethodDescriptor>, IEqualityComparer<IFieldDescriptor>, IEqualityComparer<MethodSpecification>, IEqualityComparer<IResolutionScope>, IEqualityComparer<AssemblyDescriptor>, IEqualityComparer<AssemblyReference>, IEqualityComparer<ITypeDescriptor>, IEqualityComparer<ITypeDefOrRef>, IEqualityComparer<TypeDefinition>, IEqualityComparer<TypeReference>, IEqualityComparer<TypeSpecification>, IEqualityComparer<ExportedType>, IEqualityComparer<InvalidTypeDefOrRef>, IEqualityComparer<TypeSignature>, IEqualityComparer<CorLibTypeSignature>, IEqualityComparer<ByReferenceTypeSignature>, IEqualityComparer<PointerTypeSignature>, IEqualityComparer<SzArrayTypeSignature>, IEqualityComparer<PinnedTypeSignature>, IEqualityComparer<BoxedTypeSignature>, IEqualityComparer<TypeDefOrRefSignature>, IEqualityComparer<CustomModifierTypeSignature>, IEqualityComparer<GenericInstanceTypeSignature>, IEqualityComparer<GenericParameterSignature>, IEqualityComparer<ArrayTypeSignature>, IEqualityComparer<SentinelTypeSignature>, IEqualityComparer<FunctionPointerTypeSignature>, IEqualityComparer<IList<TypeSignature>>, IEqualityComparer<IEnumerable<TypeSignature>>
- Inheritance
-
SignatureComparer
- Implements
- Inherited Members
Constructors
SignatureComparer()
The default SignatureComparer constructor.
public SignatureComparer()
SignatureComparer(SignatureComparisonFlags)
A SignatureComparer constructor with a parameter for specifying the Flags used in comparisons.
public SignatureComparer(SignatureComparisonFlags flags)
Parameters
flagsSignatureComparisonFlagsThe Flags used in comparisons.
Properties
Default
An immutable default instance of SignatureComparer.
public static SignatureComparer Default { get; }
Property Value
Flags
Flags for controlling comparison behavior.
public SignatureComparisonFlags Flags { get; }
Property Value
Methods
Equals(AssemblyDescriptor?, AssemblyDescriptor?)
Determines whether the specified objects are equal.
public bool Equals(AssemblyDescriptor? x, AssemblyDescriptor? y)
Parameters
xAssemblyDescriptorThe first object of type
Tto compare.yAssemblyDescriptorThe second object of type
Tto compare.
Returns
Equals(AssemblyReference?, AssemblyReference?)
Determines whether the specified objects are equal.
public bool Equals(AssemblyReference? x, AssemblyReference? y)
Parameters
xAssemblyReferenceThe first object of type
Tto compare.yAssemblyReferenceThe second object of type
Tto compare.
Returns
Equals(ExportedType?, ExportedType?)
Determines whether the specified objects are equal.
public bool Equals(ExportedType? x, ExportedType? y)
Parameters
xExportedTypeThe first object of type
Tto compare.yExportedTypeThe second object of type
Tto compare.
Returns
Equals(IFieldDescriptor?, IFieldDescriptor?)
Determines whether the specified objects are equal.
public bool Equals(IFieldDescriptor? x, IFieldDescriptor? y)
Parameters
xIFieldDescriptorThe first object of type
Tto compare.yIFieldDescriptorThe second object of type
Tto compare.
Returns
Equals(IMethodDescriptor?, IMethodDescriptor?)
Determines whether the specified objects are equal.
public bool Equals(IMethodDescriptor? x, IMethodDescriptor? y)
Parameters
xIMethodDescriptorThe first object of type
Tto compare.yIMethodDescriptorThe second object of type
Tto compare.
Returns
Equals(IResolutionScope?, IResolutionScope?)
Determines whether the specified objects are equal.
public bool Equals(IResolutionScope? x, IResolutionScope? y)
Parameters
xIResolutionScopeThe first object of type
Tto compare.yIResolutionScopeThe second object of type
Tto compare.
Returns
Equals(ITypeDefOrRef?, ITypeDefOrRef?)
Determines whether the specified objects are equal.
public bool Equals(ITypeDefOrRef? x, ITypeDefOrRef? y)
Parameters
xITypeDefOrRefThe first object of type
Tto compare.yITypeDefOrRefThe second object of type
Tto compare.
Returns
Equals(ITypeDescriptor?, ITypeDescriptor?)
Determines whether the specified objects are equal.
public bool Equals(ITypeDescriptor? x, ITypeDescriptor? y)
Parameters
xITypeDescriptorThe first object of type
Tto compare.yITypeDescriptorThe second object of type
Tto compare.
Returns
Equals(InvalidTypeDefOrRef?, InvalidTypeDefOrRef?)
Determines whether the specified objects are equal.
public bool Equals(InvalidTypeDefOrRef? x, InvalidTypeDefOrRef? y)
Parameters
xInvalidTypeDefOrRefThe first object of type
Tto compare.yInvalidTypeDefOrRefThe second object of type
Tto compare.
Returns
Equals(MemberReference?, MemberReference?)
Determines whether the specified objects are equal.
public bool Equals(MemberReference? x, MemberReference? y)
Parameters
xMemberReferenceThe first object of type
Tto compare.yMemberReferenceThe second object of type
Tto compare.
Returns
Equals(MethodSpecification?, MethodSpecification?)
Determines whether the specified objects are equal.
public bool Equals(MethodSpecification? x, MethodSpecification? y)
Parameters
xMethodSpecificationThe first object of type
Tto compare.yMethodSpecificationThe second object of type
Tto compare.
Returns
Equals(ArrayTypeSignature?, ArrayTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(ArrayTypeSignature? x, ArrayTypeSignature? y)
Parameters
xArrayTypeSignatureThe first object of type
Tto compare.yArrayTypeSignatureThe second object of type
Tto compare.
Returns
Equals(BoxedTypeSignature?, BoxedTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(BoxedTypeSignature? x, BoxedTypeSignature? y)
Parameters
xBoxedTypeSignatureThe first object of type
Tto compare.yBoxedTypeSignatureThe second object of type
Tto compare.
Returns
Equals(ByReferenceTypeSignature?, ByReferenceTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(ByReferenceTypeSignature? x, ByReferenceTypeSignature? y)
Parameters
xByReferenceTypeSignatureThe first object of type
Tto compare.yByReferenceTypeSignatureThe second object of type
Tto compare.
Returns
Equals(CallingConventionSignature?, CallingConventionSignature?)
Determines whether the specified objects are equal.
public bool Equals(CallingConventionSignature? x, CallingConventionSignature? y)
Parameters
xCallingConventionSignatureThe first object of type
Tto compare.yCallingConventionSignatureThe second object of type
Tto compare.
Returns
Equals(CorLibTypeSignature?, CorLibTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(CorLibTypeSignature? x, CorLibTypeSignature? y)
Parameters
xCorLibTypeSignatureThe first object of type
Tto compare.yCorLibTypeSignatureThe second object of type
Tto compare.
Returns
Equals(CustomModifierTypeSignature?, CustomModifierTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(CustomModifierTypeSignature? x, CustomModifierTypeSignature? y)
Parameters
xCustomModifierTypeSignatureThe first object of type
Tto compare.yCustomModifierTypeSignatureThe second object of type
Tto compare.
Returns
Equals(FieldSignature?, FieldSignature?)
Determines whether the specified objects are equal.
public bool Equals(FieldSignature? x, FieldSignature? y)
Parameters
xFieldSignatureThe first object of type
Tto compare.yFieldSignatureThe second object of type
Tto compare.
Returns
Equals(FunctionPointerTypeSignature?, FunctionPointerTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(FunctionPointerTypeSignature? x, FunctionPointerTypeSignature? y)
Parameters
xFunctionPointerTypeSignatureThe first object of type
Tto compare.yFunctionPointerTypeSignatureThe second object of type
Tto compare.
Returns
Equals(GenericInstanceMethodSignature?, GenericInstanceMethodSignature?)
Determines whether the specified objects are equal.
public bool Equals(GenericInstanceMethodSignature? x, GenericInstanceMethodSignature? y)
Parameters
xGenericInstanceMethodSignatureThe first object of type
Tto compare.yGenericInstanceMethodSignatureThe second object of type
Tto compare.
Returns
Equals(GenericInstanceTypeSignature?, GenericInstanceTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(GenericInstanceTypeSignature? x, GenericInstanceTypeSignature? y)
Parameters
xGenericInstanceTypeSignatureThe first object of type
Tto compare.yGenericInstanceTypeSignatureThe second object of type
Tto compare.
Returns
Equals(GenericParameterSignature?, GenericParameterSignature?)
Determines whether the specified objects are equal.
public bool Equals(GenericParameterSignature? x, GenericParameterSignature? y)
Parameters
xGenericParameterSignatureThe first object of type
Tto compare.yGenericParameterSignatureThe second object of type
Tto compare.
Returns
Equals(LocalVariablesSignature?, LocalVariablesSignature?)
Determines whether the specified objects are equal.
public bool Equals(LocalVariablesSignature? x, LocalVariablesSignature? y)
Parameters
xLocalVariablesSignatureThe first object of type
Tto compare.yLocalVariablesSignatureThe second object of type
Tto compare.
Returns
Equals(MethodSignature?, MethodSignature?)
Determines whether the specified objects are equal.
public bool Equals(MethodSignature? x, MethodSignature? y)
Parameters
xMethodSignatureThe first object of type
Tto compare.yMethodSignatureThe second object of type
Tto compare.
Returns
Equals(PinnedTypeSignature?, PinnedTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(PinnedTypeSignature? x, PinnedTypeSignature? y)
Parameters
xPinnedTypeSignatureThe first object of type
Tto compare.yPinnedTypeSignatureThe second object of type
Tto compare.
Returns
Equals(PointerTypeSignature?, PointerTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(PointerTypeSignature? x, PointerTypeSignature? y)
Parameters
xPointerTypeSignatureThe first object of type
Tto compare.yPointerTypeSignatureThe second object of type
Tto compare.
Returns
Equals(PropertySignature?, PropertySignature?)
Determines whether the specified objects are equal.
public bool Equals(PropertySignature? x, PropertySignature? y)
Parameters
xPropertySignatureThe first object of type
Tto compare.yPropertySignatureThe second object of type
Tto compare.
Returns
Equals(SentinelTypeSignature?, SentinelTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(SentinelTypeSignature? x, SentinelTypeSignature? y)
Parameters
xSentinelTypeSignatureThe first object of type
Tto compare.ySentinelTypeSignatureThe second object of type
Tto compare.
Returns
Equals(SzArrayTypeSignature?, SzArrayTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(SzArrayTypeSignature? x, SzArrayTypeSignature? y)
Parameters
xSzArrayTypeSignatureThe first object of type
Tto compare.ySzArrayTypeSignatureThe second object of type
Tto compare.
Returns
Equals(TypeDefOrRefSignature?, TypeDefOrRefSignature?)
Determines whether the specified objects are equal.
public bool Equals(TypeDefOrRefSignature? x, TypeDefOrRefSignature? y)
Parameters
xTypeDefOrRefSignatureThe first object of type
Tto compare.yTypeDefOrRefSignatureThe second object of type
Tto compare.
Returns
Equals(TypeSignature?, TypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(TypeSignature? x, TypeSignature? y)
Parameters
xTypeSignatureThe first object of type
Tto compare.yTypeSignatureThe second object of type
Tto compare.
Returns
Equals(TypeDefinition?, TypeDefinition?)
Determines whether the specified objects are equal.
public bool Equals(TypeDefinition? x, TypeDefinition? y)
Parameters
xTypeDefinitionThe first object of type
Tto compare.yTypeDefinitionThe second object of type
Tto compare.
Returns
Equals(TypeReference?, TypeReference?)
Determines whether the specified objects are equal.
public bool Equals(TypeReference? x, TypeReference? y)
Parameters
xTypeReferenceThe first object of type
Tto compare.yTypeReferenceThe second object of type
Tto compare.
Returns
Equals(TypeSpecification?, TypeSpecification?)
Determines whether the specified objects are equal.
public bool Equals(TypeSpecification? x, TypeSpecification? y)
Parameters
xTypeSpecificationThe first object of type
Tto compare.yTypeSpecificationThe second object of type
Tto compare.
Returns
Equals(byte[]?, byte[]?)
Determines whether the specified objects are equal.
public bool Equals(byte[]? x, byte[]? y)
Parameters
Returns
Equals(IEnumerable<TypeSignature>?, IEnumerable<TypeSignature>?)
Determines whether the specified objects are equal.
public bool Equals(IEnumerable<TypeSignature>? x, IEnumerable<TypeSignature>? y)
Parameters
xIEnumerable<TypeSignature>The first object of type
Tto compare.yIEnumerable<TypeSignature>The second object of type
Tto compare.
Returns
Equals(IList<TypeSignature>?, IList<TypeSignature>?)
Determines whether the specified objects are equal.
public bool Equals(IList<TypeSignature>? x, IList<TypeSignature>? y)
Parameters
xIList<TypeSignature>The first object of type
Tto compare.yIList<TypeSignature>The second object of type
Tto compare.
Returns
GetHashCode(AssemblyDescriptor)
Returns a hash code for the specified object.
public int GetHashCode(AssemblyDescriptor obj)
Parameters
objAssemblyDescriptorThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(AssemblyReference)
Returns a hash code for the specified object.
public int GetHashCode(AssemblyReference obj)
Parameters
objAssemblyReferenceThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(ExportedType)
Returns a hash code for the specified object.
public int GetHashCode(ExportedType obj)
Parameters
objExportedTypeThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(IFieldDescriptor)
Returns a hash code for the specified object.
public int GetHashCode(IFieldDescriptor obj)
Parameters
objIFieldDescriptorThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(IMethodDescriptor)
Returns a hash code for the specified object.
public int GetHashCode(IMethodDescriptor obj)
Parameters
objIMethodDescriptorThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(IResolutionScope)
Returns a hash code for the specified object.
public int GetHashCode(IResolutionScope obj)
Parameters
objIResolutionScopeThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(ITypeDefOrRef)
Returns a hash code for the specified object.
public int GetHashCode(ITypeDefOrRef obj)
Parameters
objITypeDefOrRefThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(ITypeDescriptor)
Returns a hash code for the specified object.
public int GetHashCode(ITypeDescriptor obj)
Parameters
objITypeDescriptorThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(InvalidTypeDefOrRef)
Returns a hash code for the specified object.
public int GetHashCode(InvalidTypeDefOrRef obj)
Parameters
objInvalidTypeDefOrRefThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(MemberReference)
Returns a hash code for the specified object.
public int GetHashCode(MemberReference obj)
Parameters
objMemberReferenceThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(MethodSpecification)
Returns a hash code for the specified object.
public int GetHashCode(MethodSpecification obj)
Parameters
objMethodSpecificationThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(ArrayTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(ArrayTypeSignature obj)
Parameters
objArrayTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(BoxedTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(BoxedTypeSignature obj)
Parameters
objBoxedTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(ByReferenceTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(ByReferenceTypeSignature obj)
Parameters
objByReferenceTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(CallingConventionSignature)
Returns a hash code for the specified object.
public int GetHashCode(CallingConventionSignature obj)
Parameters
objCallingConventionSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(CorLibTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(CorLibTypeSignature obj)
Parameters
objCorLibTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(CustomModifierTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(CustomModifierTypeSignature obj)
Parameters
objCustomModifierTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(FieldSignature)
Returns a hash code for the specified object.
public int GetHashCode(FieldSignature obj)
Parameters
objFieldSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(FunctionPointerTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(FunctionPointerTypeSignature obj)
Parameters
objFunctionPointerTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(GenericInstanceMethodSignature)
Returns a hash code for the specified object.
public int GetHashCode(GenericInstanceMethodSignature obj)
Parameters
objGenericInstanceMethodSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(GenericInstanceTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(GenericInstanceTypeSignature obj)
Parameters
objGenericInstanceTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(GenericParameterSignature)
Returns a hash code for the specified object.
public int GetHashCode(GenericParameterSignature obj)
Parameters
objGenericParameterSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(LocalVariablesSignature)
Returns a hash code for the specified object.
public int GetHashCode(LocalVariablesSignature obj)
Parameters
objLocalVariablesSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(MethodSignature)
Returns a hash code for the specified object.
public int GetHashCode(MethodSignature obj)
Parameters
objMethodSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(PinnedTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(PinnedTypeSignature obj)
Parameters
objPinnedTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(PointerTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(PointerTypeSignature obj)
Parameters
objPointerTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(PropertySignature)
Returns a hash code for the specified object.
public int GetHashCode(PropertySignature obj)
Parameters
objPropertySignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(SentinelTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(SentinelTypeSignature obj)
Parameters
objSentinelTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(SzArrayTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(SzArrayTypeSignature obj)
Parameters
objSzArrayTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(TypeDefOrRefSignature)
Returns a hash code for the specified object.
public int GetHashCode(TypeDefOrRefSignature obj)
Parameters
objTypeDefOrRefSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(TypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(TypeSignature obj)
Parameters
objTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(TypeDefinition)
Returns a hash code for the specified object.
public int GetHashCode(TypeDefinition obj)
Parameters
objTypeDefinitionThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(TypeReference)
Returns a hash code for the specified object.
public int GetHashCode(TypeReference obj)
Parameters
objTypeReferenceThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(TypeSpecification)
Returns a hash code for the specified object.
public int GetHashCode(TypeSpecification obj)
Parameters
objTypeSpecificationThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(byte[])
Returns a hash code for the specified object.
public int GetHashCode(byte[] obj)
Parameters
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(IEnumerable<TypeSignature>)
Returns a hash code for the specified object.
public int GetHashCode(IEnumerable<TypeSignature> obj)
Parameters
objIEnumerable<TypeSignature>The object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.
GetHashCode(IList<TypeSignature>)
Returns a hash code for the specified object.
public int GetHashCode(IList<TypeSignature> obj)
Parameters
objIList<TypeSignature>The object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.