Barbless
asked on
Is there a way to extract name of the instantiated object?
Hello all, I have the following hypothetical code snippet:
NumericUpDown MyNud = new NumericUpdown();
string s = GetName(MyNud);
...
...
private string GetName (NumericUpDown nud)
{
string returnString = string.Empty;
// What do I have to do, or is this possible at all, so that
// returnString can be set to "MyNud" ?
return returnString;
}
NumericUpDown MyNud = new NumericUpdown();
string s = GetName(MyNud);
...
...
private string GetName (NumericUpDown nud)
{
string returnString = string.Empty;
// What do I have to do, or is this possible at all, so that
// returnString can be set to "MyNud" ?
return returnString;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER