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
flags
SignatureComparisonFlagsThe 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
x
AssemblyDescriptorThe first object of type
T
to compare.y
AssemblyDescriptorThe second object of type
T
to compare.
Returns
Equals(AssemblyReference?, AssemblyReference?)
Determines whether the specified objects are equal.
public bool Equals(AssemblyReference? x, AssemblyReference? y)
Parameters
x
AssemblyReferenceThe first object of type
T
to compare.y
AssemblyReferenceThe second object of type
T
to compare.
Returns
Equals(ExportedType?, ExportedType?)
Determines whether the specified objects are equal.
public bool Equals(ExportedType? x, ExportedType? y)
Parameters
x
ExportedTypeThe first object of type
T
to compare.y
ExportedTypeThe second object of type
T
to compare.
Returns
Equals(IFieldDescriptor?, IFieldDescriptor?)
Determines whether the specified objects are equal.
public bool Equals(IFieldDescriptor? x, IFieldDescriptor? y)
Parameters
x
IFieldDescriptorThe first object of type
T
to compare.y
IFieldDescriptorThe second object of type
T
to compare.
Returns
Equals(IMethodDescriptor?, IMethodDescriptor?)
Determines whether the specified objects are equal.
public bool Equals(IMethodDescriptor? x, IMethodDescriptor? y)
Parameters
x
IMethodDescriptorThe first object of type
T
to compare.y
IMethodDescriptorThe second object of type
T
to compare.
Returns
Equals(IResolutionScope?, IResolutionScope?)
Determines whether the specified objects are equal.
public bool Equals(IResolutionScope? x, IResolutionScope? y)
Parameters
x
IResolutionScopeThe first object of type
T
to compare.y
IResolutionScopeThe second object of type
T
to compare.
Returns
Equals(ITypeDefOrRef?, ITypeDefOrRef?)
Determines whether the specified objects are equal.
public bool Equals(ITypeDefOrRef? x, ITypeDefOrRef? y)
Parameters
x
ITypeDefOrRefThe first object of type
T
to compare.y
ITypeDefOrRefThe second object of type
T
to compare.
Returns
Equals(ITypeDescriptor?, ITypeDescriptor?)
Determines whether the specified objects are equal.
public bool Equals(ITypeDescriptor? x, ITypeDescriptor? y)
Parameters
x
ITypeDescriptorThe first object of type
T
to compare.y
ITypeDescriptorThe second object of type
T
to compare.
Returns
Equals(InvalidTypeDefOrRef?, InvalidTypeDefOrRef?)
Determines whether the specified objects are equal.
public bool Equals(InvalidTypeDefOrRef? x, InvalidTypeDefOrRef? y)
Parameters
x
InvalidTypeDefOrRefThe first object of type
T
to compare.y
InvalidTypeDefOrRefThe second object of type
T
to compare.
Returns
Equals(MemberReference?, MemberReference?)
Determines whether the specified objects are equal.
public bool Equals(MemberReference? x, MemberReference? y)
Parameters
x
MemberReferenceThe first object of type
T
to compare.y
MemberReferenceThe second object of type
T
to compare.
Returns
Equals(MethodSpecification?, MethodSpecification?)
Determines whether the specified objects are equal.
public bool Equals(MethodSpecification? x, MethodSpecification? y)
Parameters
x
MethodSpecificationThe first object of type
T
to compare.y
MethodSpecificationThe second object of type
T
to compare.
Returns
Equals(ArrayTypeSignature?, ArrayTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(ArrayTypeSignature? x, ArrayTypeSignature? y)
Parameters
x
ArrayTypeSignatureThe first object of type
T
to compare.y
ArrayTypeSignatureThe second object of type
T
to compare.
Returns
Equals(BoxedTypeSignature?, BoxedTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(BoxedTypeSignature? x, BoxedTypeSignature? y)
Parameters
x
BoxedTypeSignatureThe first object of type
T
to compare.y
BoxedTypeSignatureThe second object of type
T
to compare.
Returns
Equals(ByReferenceTypeSignature?, ByReferenceTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(ByReferenceTypeSignature? x, ByReferenceTypeSignature? y)
Parameters
x
ByReferenceTypeSignatureThe first object of type
T
to compare.y
ByReferenceTypeSignatureThe second object of type
T
to compare.
Returns
Equals(CallingConventionSignature?, CallingConventionSignature?)
Determines whether the specified objects are equal.
public bool Equals(CallingConventionSignature? x, CallingConventionSignature? y)
Parameters
x
CallingConventionSignatureThe first object of type
T
to compare.y
CallingConventionSignatureThe second object of type
T
to compare.
Returns
Equals(CorLibTypeSignature?, CorLibTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(CorLibTypeSignature? x, CorLibTypeSignature? y)
Parameters
x
CorLibTypeSignatureThe first object of type
T
to compare.y
CorLibTypeSignatureThe second object of type
T
to compare.
Returns
Equals(CustomModifierTypeSignature?, CustomModifierTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(CustomModifierTypeSignature? x, CustomModifierTypeSignature? y)
Parameters
x
CustomModifierTypeSignatureThe first object of type
T
to compare.y
CustomModifierTypeSignatureThe second object of type
T
to compare.
Returns
Equals(FieldSignature?, FieldSignature?)
Determines whether the specified objects are equal.
public bool Equals(FieldSignature? x, FieldSignature? y)
Parameters
x
FieldSignatureThe first object of type
T
to compare.y
FieldSignatureThe second object of type
T
to compare.
Returns
Equals(FunctionPointerTypeSignature?, FunctionPointerTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(FunctionPointerTypeSignature? x, FunctionPointerTypeSignature? y)
Parameters
x
FunctionPointerTypeSignatureThe first object of type
T
to compare.y
FunctionPointerTypeSignatureThe second object of type
T
to compare.
Returns
Equals(GenericInstanceMethodSignature?, GenericInstanceMethodSignature?)
Determines whether the specified objects are equal.
public bool Equals(GenericInstanceMethodSignature? x, GenericInstanceMethodSignature? y)
Parameters
x
GenericInstanceMethodSignatureThe first object of type
T
to compare.y
GenericInstanceMethodSignatureThe second object of type
T
to compare.
Returns
Equals(GenericInstanceTypeSignature?, GenericInstanceTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(GenericInstanceTypeSignature? x, GenericInstanceTypeSignature? y)
Parameters
x
GenericInstanceTypeSignatureThe first object of type
T
to compare.y
GenericInstanceTypeSignatureThe second object of type
T
to compare.
Returns
Equals(GenericParameterSignature?, GenericParameterSignature?)
Determines whether the specified objects are equal.
public bool Equals(GenericParameterSignature? x, GenericParameterSignature? y)
Parameters
x
GenericParameterSignatureThe first object of type
T
to compare.y
GenericParameterSignatureThe second object of type
T
to compare.
Returns
Equals(LocalVariablesSignature?, LocalVariablesSignature?)
Determines whether the specified objects are equal.
public bool Equals(LocalVariablesSignature? x, LocalVariablesSignature? y)
Parameters
x
LocalVariablesSignatureThe first object of type
T
to compare.y
LocalVariablesSignatureThe second object of type
T
to compare.
Returns
Equals(MethodSignature?, MethodSignature?)
Determines whether the specified objects are equal.
public bool Equals(MethodSignature? x, MethodSignature? y)
Parameters
x
MethodSignatureThe first object of type
T
to compare.y
MethodSignatureThe second object of type
T
to compare.
Returns
Equals(PinnedTypeSignature?, PinnedTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(PinnedTypeSignature? x, PinnedTypeSignature? y)
Parameters
x
PinnedTypeSignatureThe first object of type
T
to compare.y
PinnedTypeSignatureThe second object of type
T
to compare.
Returns
Equals(PointerTypeSignature?, PointerTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(PointerTypeSignature? x, PointerTypeSignature? y)
Parameters
x
PointerTypeSignatureThe first object of type
T
to compare.y
PointerTypeSignatureThe second object of type
T
to compare.
Returns
Equals(PropertySignature?, PropertySignature?)
Determines whether the specified objects are equal.
public bool Equals(PropertySignature? x, PropertySignature? y)
Parameters
x
PropertySignatureThe first object of type
T
to compare.y
PropertySignatureThe second object of type
T
to compare.
Returns
Equals(SentinelTypeSignature?, SentinelTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(SentinelTypeSignature? x, SentinelTypeSignature? y)
Parameters
x
SentinelTypeSignatureThe first object of type
T
to compare.y
SentinelTypeSignatureThe second object of type
T
to compare.
Returns
Equals(SzArrayTypeSignature?, SzArrayTypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(SzArrayTypeSignature? x, SzArrayTypeSignature? y)
Parameters
x
SzArrayTypeSignatureThe first object of type
T
to compare.y
SzArrayTypeSignatureThe second object of type
T
to compare.
Returns
Equals(TypeDefOrRefSignature?, TypeDefOrRefSignature?)
Determines whether the specified objects are equal.
public bool Equals(TypeDefOrRefSignature? x, TypeDefOrRefSignature? y)
Parameters
x
TypeDefOrRefSignatureThe first object of type
T
to compare.y
TypeDefOrRefSignatureThe second object of type
T
to compare.
Returns
Equals(TypeSignature?, TypeSignature?)
Determines whether the specified objects are equal.
public bool Equals(TypeSignature? x, TypeSignature? y)
Parameters
x
TypeSignatureThe first object of type
T
to compare.y
TypeSignatureThe second object of type
T
to compare.
Returns
Equals(TypeDefinition?, TypeDefinition?)
Determines whether the specified objects are equal.
public bool Equals(TypeDefinition? x, TypeDefinition? y)
Parameters
x
TypeDefinitionThe first object of type
T
to compare.y
TypeDefinitionThe second object of type
T
to compare.
Returns
Equals(TypeReference?, TypeReference?)
Determines whether the specified objects are equal.
public bool Equals(TypeReference? x, TypeReference? y)
Parameters
x
TypeReferenceThe first object of type
T
to compare.y
TypeReferenceThe second object of type
T
to compare.
Returns
Equals(TypeSpecification?, TypeSpecification?)
Determines whether the specified objects are equal.
public bool Equals(TypeSpecification? x, TypeSpecification? y)
Parameters
x
TypeSpecificationThe first object of type
T
to compare.y
TypeSpecificationThe second object of type
T
to 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
x
IEnumerable<TypeSignature>The first object of type
T
to compare.y
IEnumerable<TypeSignature>The second object of type
T
to compare.
Returns
Equals(IList<TypeSignature>?, IList<TypeSignature>?)
Determines whether the specified objects are equal.
public bool Equals(IList<TypeSignature>? x, IList<TypeSignature>? y)
Parameters
x
IList<TypeSignature>The first object of type
T
to compare.y
IList<TypeSignature>The second object of type
T
to compare.
Returns
GetHashCode(AssemblyDescriptor)
Returns a hash code for the specified object.
public int GetHashCode(AssemblyDescriptor obj)
Parameters
obj
AssemblyDescriptorThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(AssemblyReference)
Returns a hash code for the specified object.
public int GetHashCode(AssemblyReference obj)
Parameters
obj
AssemblyReferenceThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(ExportedType)
Returns a hash code for the specified object.
public int GetHashCode(ExportedType obj)
Parameters
obj
ExportedTypeThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(IFieldDescriptor)
Returns a hash code for the specified object.
public int GetHashCode(IFieldDescriptor obj)
Parameters
obj
IFieldDescriptorThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(IMethodDescriptor)
Returns a hash code for the specified object.
public int GetHashCode(IMethodDescriptor obj)
Parameters
obj
IMethodDescriptorThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(IResolutionScope)
Returns a hash code for the specified object.
public int GetHashCode(IResolutionScope obj)
Parameters
obj
IResolutionScopeThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(ITypeDefOrRef)
Returns a hash code for the specified object.
public int GetHashCode(ITypeDefOrRef obj)
Parameters
obj
ITypeDefOrRefThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(ITypeDescriptor)
Returns a hash code for the specified object.
public int GetHashCode(ITypeDescriptor obj)
Parameters
obj
ITypeDescriptorThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(InvalidTypeDefOrRef)
Returns a hash code for the specified object.
public int GetHashCode(InvalidTypeDefOrRef obj)
Parameters
obj
InvalidTypeDefOrRefThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(MemberReference)
Returns a hash code for the specified object.
public int GetHashCode(MemberReference obj)
Parameters
obj
MemberReferenceThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(MethodSpecification)
Returns a hash code for the specified object.
public int GetHashCode(MethodSpecification obj)
Parameters
obj
MethodSpecificationThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(ArrayTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(ArrayTypeSignature obj)
Parameters
obj
ArrayTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(BoxedTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(BoxedTypeSignature obj)
Parameters
obj
BoxedTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(ByReferenceTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(ByReferenceTypeSignature obj)
Parameters
obj
ByReferenceTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(CallingConventionSignature)
Returns a hash code for the specified object.
public int GetHashCode(CallingConventionSignature obj)
Parameters
obj
CallingConventionSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(CorLibTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(CorLibTypeSignature obj)
Parameters
obj
CorLibTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(CustomModifierTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(CustomModifierTypeSignature obj)
Parameters
obj
CustomModifierTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(FieldSignature)
Returns a hash code for the specified object.
public int GetHashCode(FieldSignature obj)
Parameters
obj
FieldSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(FunctionPointerTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(FunctionPointerTypeSignature obj)
Parameters
obj
FunctionPointerTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(GenericInstanceMethodSignature)
Returns a hash code for the specified object.
public int GetHashCode(GenericInstanceMethodSignature obj)
Parameters
obj
GenericInstanceMethodSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(GenericInstanceTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(GenericInstanceTypeSignature obj)
Parameters
obj
GenericInstanceTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(GenericParameterSignature)
Returns a hash code for the specified object.
public int GetHashCode(GenericParameterSignature obj)
Parameters
obj
GenericParameterSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(LocalVariablesSignature)
Returns a hash code for the specified object.
public int GetHashCode(LocalVariablesSignature obj)
Parameters
obj
LocalVariablesSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(MethodSignature)
Returns a hash code for the specified object.
public int GetHashCode(MethodSignature obj)
Parameters
obj
MethodSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(PinnedTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(PinnedTypeSignature obj)
Parameters
obj
PinnedTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(PointerTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(PointerTypeSignature obj)
Parameters
obj
PointerTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(PropertySignature)
Returns a hash code for the specified object.
public int GetHashCode(PropertySignature obj)
Parameters
obj
PropertySignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(SentinelTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(SentinelTypeSignature obj)
Parameters
obj
SentinelTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(SzArrayTypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(SzArrayTypeSignature obj)
Parameters
obj
SzArrayTypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(TypeDefOrRefSignature)
Returns a hash code for the specified object.
public int GetHashCode(TypeDefOrRefSignature obj)
Parameters
obj
TypeDefOrRefSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(TypeSignature)
Returns a hash code for the specified object.
public int GetHashCode(TypeSignature obj)
Parameters
obj
TypeSignatureThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(TypeDefinition)
Returns a hash code for the specified object.
public int GetHashCode(TypeDefinition obj)
Parameters
obj
TypeDefinitionThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(TypeReference)
Returns a hash code for the specified object.
public int GetHashCode(TypeReference obj)
Parameters
obj
TypeReferenceThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.
GetHashCode(TypeSpecification)
Returns a hash code for the specified object.
public int GetHashCode(TypeSpecification obj)
Parameters
obj
TypeSpecificationThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is 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
obj
is a reference type andobj
is null.
GetHashCode(IEnumerable<TypeSignature>)
Returns a hash code for the specified object.
public int GetHashCode(IEnumerable<TypeSignature> obj)
Parameters
obj
IEnumerable<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
obj
is a reference type andobj
is null.
GetHashCode(IList<TypeSignature>)
Returns a hash code for the specified object.
public int GetHashCode(IList<TypeSignature> obj)
Parameters
obj
IList<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
obj
is a reference type andobj
is null.