1

I have a function

public void AddPerson(string name)
{
    Trace.WriteLine(MethodBase.GetCurrentMethod());
}

The expected output is

void AddPerson(string name)

But I wanted that the methodname outputted has no parameters in it.

void AddPerson()
4

2 に答える 2