System.Reflection.LocalVariableInfo Class

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

See Also: LocalVariableInfo Members


public class LocalVariableInfo


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.


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.


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