DynamicILInfo.GetTokenFor Method (DynamicMethod)

 

Gets a token, valid in the scope of the current DynamicILInfo, representing a dynamic method to be called from the associated method.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public int GetTokenFor(
	DynamicMethod method
)

Parameters

method
Type: System.Reflection.Emit.DynamicMethod

The dynamic method to call.

Return Value

Type: System.Int32

A token that can be embedded in the MSIL stream for the associated dynamic method, as the target of an MSIL instruction.

The token returned by this method overload allows you to call a dynamic method from the dynamic method associated with the current DynamicILInfo object. To call the associated dynamic method recursively, pass the value of the DynamicMethod property.

.NET Framework
Available since 2.0
Return to top
Show: