I have a parameter d
. I want to use the name of the parameter in an error message:
void foo(string d)
{
// this does not work
string message string.Format("Parameter {0} is missing please verify inputs", d));
}
How can I get the name of a parameter?