Format | Assembly Format | Description |
---|---|---|
D0 <T> | ldtoken token |
Convert metadata token to its runtime representation. |
… → …, RuntimeHandle
The ldtoken
instruction pushes a RuntimeHandle
for the specified metadata token. The token shall be one of:
-
A
methoddef
,methodref
ormethodspec
: pushes aRuntimeMethodHandle
-
A
typedef
,typeref
, ortypespec
: pushes aRuntimeTypeHandle
-
A
fielddef
orfieldref
: pushes aRuntimeFieldHandle
The value pushed on the stack can be used in calls to reflection methods in the system class library
None.
Correct CIL requires that token describes a valid metadata token of the kinds listed above
There are no additional verification requirements.