System.Reflection.LocalVariableInfo Class

Discovers the attributes of a local variable and provides access to local variable metadata.

See Also: LocalVariableInfo Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class LocalVariableInfo

Remarks

To get a list of local variables in a method, use the MethodBody.LocalVariables property. Use the MethodBase.GetMethodBody method to obtain the System.Reflection.MethodBody for a System.Reflection.MethodInfo object.

Note:

Local variable names are not persisted in metadata. In Microsoft intermediate language (MSIL), local variables are accessed by their position in the local variable signature.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0