C# Класс AsmResolver.Net.SignatureComparer

Provides methods for comparing symbols in a .NET assembly.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ByteArrayMatches ( IEnumerable array1, IList array2 ) : bool

Описание методов

MatchArrayDimensions() публичный Метод

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.
Результат bool

MatchAssemblies() публичный Метод

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.
Результат bool

MatchFieldSignatures() публичный Метод

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.
Результат bool

MatchManyTypes() публичный Метод

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.
Результат bool

MatchMemberSignatures() публичный Метод

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.
Результат bool

MatchMembers() публичный Метод

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.
Результат bool

MatchMembers() публичный Метод

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.
Результат bool

MatchMembers() публичный Метод

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.
Результат bool

MatchMembers() публичный Метод

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.
Результат bool

MatchMembers() публичный Метод

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.
Результат bool

MatchMethodSignatures() публичный Метод

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.
Результат bool

MatchModules() публичный Метод

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.
Результат bool

MatchModules() публичный Метод

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.
Результат bool

MatchParents() публичный Метод

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.
Результат bool

MatchPropertySignatures() публичный Метод

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.
Результат bool

MatchScopes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool

MatchTypes() публичный Метод

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.
Результат bool