Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

How to get local variable names defined in a method using reflection in C#.net

$
0
0

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.


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>