How to get local variable names defined inside a method using reflection(.net assembly).
I can get local variable info using MethodInfo.MethodBody().LocalVariables. But it gives data type of the local variables not the name.
So is there any way that i can get variable names.