System.Reflection.Emit.DynamicILInfo.GetTokenFor Method

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

Syntax

public int GetTokenFor (string literal)

Parameters

literal
The string to be used.

Returns

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

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0