Show / Hide Table of Contents

Interface ITokenResolver

Represents an object that can be used to convert metadata tokens into corresponding high-level reflection objects

Namespace: CilTools.Reflection
Assembly: CilTools.BytecodeAnalysis.dll
Syntax
public interface ITokenResolver

Methods

ResolveField(Int32)

Returns the field identified by the specified metadata token.

Declaration
FieldInfo ResolveField(int metadataToken)
Parameters
Type Name Description
System.Int32 metadataToken
Returns
Type Description
System.Reflection.FieldInfo

ResolveField(Int32, Type[], Type[])

Returns the field identified by the specified metadata token, in the context defined by the specified generic type parameters.

Declaration
FieldInfo ResolveField(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
Parameters
Type Name Description
System.Int32 metadataToken
System.Type[] genericTypeArguments
System.Type[] genericMethodArguments
Returns
Type Description
System.Reflection.FieldInfo

ResolveMember(Int32)

Returns the type or member identified by the specified metadata token.

Declaration
MemberInfo ResolveMember(int metadataToken)
Parameters
Type Name Description
System.Int32 metadataToken
Returns
Type Description
System.Reflection.MemberInfo

ResolveMember(Int32, Type[], Type[])

Returns the type or member identified by the specified metadata token, in the context defined by the specified generic type parameters.

Declaration
MemberInfo ResolveMember(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
Parameters
Type Name Description
System.Int32 metadataToken
System.Type[] genericTypeArguments
System.Type[] genericMethodArguments
Returns
Type Description
System.Reflection.MemberInfo

ResolveMethod(Int32)

Returns the method or constructor identified by the specified metadata token.

Declaration
MethodBase ResolveMethod(int metadataToken)
Parameters
Type Name Description
System.Int32 metadataToken
Returns
Type Description
System.Reflection.MethodBase

ResolveMethod(Int32, Type[], Type[])

Returns the method or constructor identified by the specified metadata token, in the context defined by the specified generic type parameters.

Declaration
MethodBase ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
Parameters
Type Name Description
System.Int32 metadataToken
System.Type[] genericTypeArguments
System.Type[] genericMethodArguments
Returns
Type Description
System.Reflection.MethodBase

ResolveSignature(Int32)

Returns the signature blob identified by a metadata token.

Declaration
byte[] ResolveSignature(int metadataToken)
Parameters
Type Name Description
System.Int32 metadataToken
Returns
Type Description
System.Byte[]

An array of bytes representing the signature blob.

ResolveString(Int32)

Returns the string identified by the specified metadata token.

Declaration
string ResolveString(int metadataToken)
Parameters
Type Name Description
System.Int32 metadataToken
Returns
Type Description
System.String

ResolveType(Int32)

Returns the type identified by the specified metadata token.

Declaration
Type ResolveType(int metadataToken)
Parameters
Type Name Description
System.Int32 metadataToken
Returns
Type Description
System.Type

ResolveType(Int32, Type[], Type[])

Returns the type identified by the specified metadata token, in the context defined by the specified generic type parameters.

Declaration
Type ResolveType(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
Parameters
Type Name Description
System.Int32 metadataToken
System.Type[] genericTypeArguments
System.Type[] genericMethodArguments
Returns
Type Description
System.Type
Back to top CIL Tools (published from sources in GitHub repository).
Generated by DocFX