DynamicILInfo.GetTokenFor Method (String)

 

Gets a token, valid in the scope of the current DynamicILInfo, representing a string literal to be used in the associated dynamic method.

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

public int GetTokenFor(
	string literal
)

Parameters

literal
Type: System.String

The string to be used.

Return Value

Type: System.Int32

A token that can be used as the operand of an MSIL instruction that requires a string, in the scope of the current DynamicILInfo object.

.NET Framework
Available since 2.0
Return to top
Show: