Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You are building a tool that examines code, and you need to get access to the local variables within a method.
Use the LocalVariables property on the MethodBody class to return an IList of LocalVariableInfo objects, each of which describes a local variable within the method: