Interface ITokenResolver
Represents an object that can be used to convert metadata tokens into corresponding high-level reflection objects
Assembly: CilTools.BytecodeAnalysis.dll
public interface ITokenResolver
Methods
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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.
|
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 |
|
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 |
|
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 |
|