I'd be grateful if one of you good folks would please explain to me a method by which I may obtain the name of a variable. Specifically, I'm iterating through a MenuItems collection and I'd like to compare the name of each MenuItem to a value stored in a database in order to determine whether the menu item should be enabled for the user. For example...
<code>
MenuItem miTest;
Console.Write(GetVariableName(miTest)); //would output "miTest"
</code>
Thanks,
Charlie
Charlie Pastre
cpastre@t1mas.com
<code>
MenuItem miTest;
Console.Write(GetVariableName(miTest)); //would output "miTest"
</code>
Thanks,
Charlie
Charlie Pastre
cpastre@t1mas.com