I wrote a method like this in C#.
MethodBase method = MethodBase.GetCurrentMethod();
string key ="";
for (int i = 0; i < method.GetParameters().Length; i++)
{
key=method.GetParameters().Name;
// need value of parameter here
}
I'm getting parameter names through the above code. My question is: How can I get the values of the parameters which are coming to my method?