C# Class AsmResolver.Net.SignatureComparer

Provides methods for comparing symbols in a .NET assembly.
显示文件 Open project: JerreS/AsmResolver Class Usage Examples

Public Methods

Method Description
MatchArrayDimensions ( ArrayDimension dimension1, ArrayDimension dimension2 ) : bool

Determines whether two array dimensions are considered equal according to their signature.

MatchAssemblies ( IAssemblyDescriptor info1, IAssemblyDescriptor info2 ) : bool

Determines whether two assembly descriptors are considered equal according to their signature.

MatchFieldSignatures ( FieldSignature signature1, FieldSignature signature2 ) : bool

Determines whether two field signatures are considered equal according to their signatures.

MatchManyTypes ( IEnumerable types1, IEnumerable types2 ) : bool

Determines whether two enumerations of type signatures are considered equal according to their signatures.

MatchMemberSignatures ( CallingConventionSignature signature1, CallingConventionSignature signature2 ) : bool

Determines whether two member signatures are considered equal according to their signatures.

MatchMembers ( FieldDefinition field, MemberReference reference ) : bool

Determines whether a field definition is considered equal to a member reference according to their signatures.

MatchMembers ( ICallableMemberReference reference1, ICallableMemberReference reference2 ) : bool

Determines whether two callable member references are considered equal according to their signatures.

MatchMembers ( IMemberReference reference1, IMemberReference reference2 ) : bool

Determines whether two callable member references are considered equal according to their signatures.

MatchMembers ( MemberReference reference1, MemberReference reference2 ) : bool

Determines whether two member references are considered equal according to their signatures.

MatchMembers ( MethodDefinition method, MemberReference reference ) : bool

Determines whether a method definition is considered equal to a member reference according to their signatures.

MatchMethodSignatures ( MethodSignature signature1, MethodSignature signature2 ) : bool

Determines whether two method signatures are considered equal according to their signatures.

MatchModules ( ModuleDefinition module1, ModuleDefinition module2 ) : bool

Determines whether two module definitions are considered equal according to their signature.

MatchModules ( ModuleReference reference1, ModuleReference reference2 ) : bool

Determines whether two module references are considered equal according to their signature.

MatchParents ( IMemberRefParent parent1, IMemberRefParent parent2 ) : bool

Determines whether two member parents are considered equal according to their signature.

MatchPropertySignatures ( PropertySignature signature1, PropertySignature signature2 ) : bool

Determines whether two property signatures are considered equal according to their signatures.

MatchScopes ( IResolutionScope scope1, IResolutionScope scope2 ) : bool

Determines whether two scope descriptors are considered equal according to their signature.

MatchTypes ( ArrayTypeSignature signature1, ArrayTypeSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( BoxedTypeSignature signature1, BoxedTypeSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( ByReferenceTypeSignature signature1, ByReferenceTypeSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( FunctionPointerTypeSignature signature1, FunctionPointerTypeSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( GenericInstanceTypeSignature signature1, GenericInstanceTypeSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( GenericParameterSignature signature1, GenericParameterSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( ITypeDefOrRef type1, ITypeDefOrRef type2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( ITypeDefOrRef reference1, ITypeDescriptor descriptor ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( ITypeDescriptor type1, ITypeDescriptor type2 ) : bool

Determines whether two type descriptors are considered equal according to their signature.

MatchTypes ( MsCorLibTypeSignature signature1, ITypeDescriptor descriptor ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( OptionalModifierSignature signature1, OptionalModifierSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( PinnedTypeSignature signature1, PinnedTypeSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( PointerTypeSignature signature1, PointerTypeSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( RequiredModifierSignature signature1, RequiredModifierSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( SentinelTypeSignature signature1, SentinelTypeSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( SzArrayTypeSignature signature1, SzArrayTypeSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( TypeDefOrRefSignature signature1, ITypeDescriptor descriptor ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( TypeSignature signature1, ITypeDescriptor descriptor ) : bool

Determines whether two types are considered equal according to their signature.

MatchTypes ( TypeSignature signature1, TypeSignature signature2 ) : bool

Determines whether two types are considered equal according to their signature.

Private Methods

Method Description
ByteArrayMatches ( IEnumerable array1, IList array2 ) : bool

Method Details

MatchArrayDimensions() public method

Determines whether two array dimensions are considered equal according to their signature.
public MatchArrayDimensions ( ArrayDimension dimension1, ArrayDimension dimension2 ) : bool
dimension1 AsmResolver.Net.Signatures.ArrayDimension The first dimension to compare.
dimension2 AsmResolver.Net.Signatures.ArrayDimension The second dimension to compare.
return bool

MatchAssemblies() public method

Determines whether two assembly descriptors are considered equal according to their signature.
public MatchAssemblies ( IAssemblyDescriptor info1, IAssemblyDescriptor info2 ) : bool
info1 IAssemblyDescriptor The first assembly to compare.
info2 IAssemblyDescriptor The second assembly to compare.
return bool

MatchFieldSignatures() public method

Determines whether two field signatures are considered equal according to their signatures.
public MatchFieldSignatures ( FieldSignature signature1, FieldSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.FieldSignature The first signature to compare.
signature2 AsmResolver.Net.Signatures.FieldSignature The second signature to compare.
return bool

MatchManyTypes() public method

Determines whether two enumerations of type signatures are considered equal according to their signatures.
public MatchManyTypes ( IEnumerable types1, IEnumerable types2 ) : bool
types1 IEnumerable The first type enumeration to compare.
types2 IEnumerable The second type enumeration to compare.
return bool

MatchMemberSignatures() public method

Determines whether two member signatures are considered equal according to their signatures.
public MatchMemberSignatures ( CallingConventionSignature signature1, CallingConventionSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.CallingConventionSignature The first signature to compare.
signature2 AsmResolver.Net.Signatures.CallingConventionSignature The second signature to compare.
return bool

MatchMembers() public method

Determines whether a field definition is considered equal to a member reference according to their signatures.
public MatchMembers ( FieldDefinition field, MemberReference reference ) : bool
field FieldDefinition The field definition to compare.
reference MemberReference The member reference to compare.
return bool

MatchMembers() public method

Determines whether two callable member references are considered equal according to their signatures.
public MatchMembers ( ICallableMemberReference reference1, ICallableMemberReference reference2 ) : bool
reference1 ICallableMemberReference The first reference to compare.
reference2 ICallableMemberReference The second reference to compare.
return bool

MatchMembers() public method

Determines whether two callable member references are considered equal according to their signatures.
public MatchMembers ( IMemberReference reference1, IMemberReference reference2 ) : bool
reference1 IMemberReference The first reference to compare.
reference2 IMemberReference The second reference to compare.
return bool

MatchMembers() public method

Determines whether two member references are considered equal according to their signatures.
public MatchMembers ( MemberReference reference1, MemberReference reference2 ) : bool
reference1 MemberReference The first reference to compare.
reference2 MemberReference The second reference to compare.
return bool

MatchMembers() public method

Determines whether a method definition is considered equal to a member reference according to their signatures.
public MatchMembers ( MethodDefinition method, MemberReference reference ) : bool
method MethodDefinition The field definition to compare.
reference MemberReference The member reference to compare.
return bool

MatchMethodSignatures() public method

Determines whether two method signatures are considered equal according to their signatures.
public MatchMethodSignatures ( MethodSignature signature1, MethodSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.MethodSignature The first signature to compare.
signature2 AsmResolver.Net.Signatures.MethodSignature The second signature to compare.
return bool

MatchModules() public method

Determines whether two module definitions are considered equal according to their signature.
public MatchModules ( ModuleDefinition module1, ModuleDefinition module2 ) : bool
module1 ModuleDefinition The first module to compare.
module2 ModuleDefinition The second module to compare.
return bool

MatchModules() public method

Determines whether two module references are considered equal according to their signature.
public MatchModules ( ModuleReference reference1, ModuleReference reference2 ) : bool
reference1 ModuleReference The first module to compare.
reference2 ModuleReference The second module to compare.
return bool

MatchParents() public method

Determines whether two member parents are considered equal according to their signature.
public MatchParents ( IMemberRefParent parent1, IMemberRefParent parent2 ) : bool
parent1 IMemberRefParent The first member parent to compare.
parent2 IMemberRefParent The second member parent to compare.
return bool

MatchPropertySignatures() public method

Determines whether two property signatures are considered equal according to their signatures.
public MatchPropertySignatures ( PropertySignature signature1, PropertySignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.PropertySignature The first signature to compare.
signature2 AsmResolver.Net.Signatures.PropertySignature The second signature to compare.
return bool

MatchScopes() public method

Determines whether two scope descriptors are considered equal according to their signature.
public MatchScopes ( IResolutionScope scope1, IResolutionScope scope2 ) : bool
scope1 IResolutionScope The first scope to compare.
scope2 IResolutionScope The second scope to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( ArrayTypeSignature signature1, ArrayTypeSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.ArrayTypeSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.ArrayTypeSignature The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( BoxedTypeSignature signature1, BoxedTypeSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.BoxedTypeSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.BoxedTypeSignature The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( ByReferenceTypeSignature signature1, ByReferenceTypeSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.ByReferenceTypeSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.ByReferenceTypeSignature The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( FunctionPointerTypeSignature signature1, FunctionPointerTypeSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.FunctionPointerTypeSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.FunctionPointerTypeSignature The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( GenericInstanceTypeSignature signature1, GenericInstanceTypeSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.GenericInstanceTypeSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.GenericInstanceTypeSignature The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( GenericParameterSignature signature1, GenericParameterSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.GenericParameterSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.GenericParameterSignature The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( ITypeDefOrRef type1, ITypeDefOrRef type2 ) : bool
type1 ITypeDefOrRef The first type to compare.
type2 ITypeDefOrRef The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( ITypeDefOrRef reference1, ITypeDescriptor descriptor ) : bool
reference1 ITypeDefOrRef The first type to compare.
descriptor ITypeDescriptor The second type to compare.
return bool

MatchTypes() public method

Determines whether two type descriptors are considered equal according to their signature.
public MatchTypes ( ITypeDescriptor type1, ITypeDescriptor type2 ) : bool
type1 ITypeDescriptor The first type to compare.
type2 ITypeDescriptor The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( MsCorLibTypeSignature signature1, ITypeDescriptor descriptor ) : bool
signature1 AsmResolver.Net.Signatures.MsCorLibTypeSignature The first type to compare.
descriptor ITypeDescriptor The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( OptionalModifierSignature signature1, OptionalModifierSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.OptionalModifierSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.OptionalModifierSignature The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( PinnedTypeSignature signature1, PinnedTypeSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.PinnedTypeSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.PinnedTypeSignature The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( PointerTypeSignature signature1, PointerTypeSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.PointerTypeSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.PointerTypeSignature The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( RequiredModifierSignature signature1, RequiredModifierSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.RequiredModifierSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.RequiredModifierSignature The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( SentinelTypeSignature signature1, SentinelTypeSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.SentinelTypeSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.SentinelTypeSignature The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( SzArrayTypeSignature signature1, SzArrayTypeSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.SzArrayTypeSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.SzArrayTypeSignature The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( TypeDefOrRefSignature signature1, ITypeDescriptor descriptor ) : bool
signature1 AsmResolver.Net.Signatures.TypeDefOrRefSignature The first type to compare.
descriptor ITypeDescriptor The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( TypeSignature signature1, ITypeDescriptor descriptor ) : bool
signature1 AsmResolver.Net.Signatures.TypeSignature The first type to compare.
descriptor ITypeDescriptor The second type to compare.
return bool

MatchTypes() public method

Determines whether two types are considered equal according to their signature.
public MatchTypes ( TypeSignature signature1, TypeSignature signature2 ) : bool
signature1 AsmResolver.Net.Signatures.TypeSignature The first type to compare.
signature2 AsmResolver.Net.Signatures.TypeSignature The second type to compare.
return bool