See Also: LocalVariableInfo Members
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.