C# method

Dec 11 2007 10:45 PM
how can i get the variable name in C#.Net?
Like
string name = "myname";

So my out put is should com "name".
not "myname"

i found in java it can do getFieldName() method. like wise what is the method in C#.Net? can u post the full example codes?

Answers (3)