Link to home
Start Free TrialLog in
Avatar of Skale
Skale

asked on

How to write function's name as a string in C#

I've a case like below;

public static void POP_YTL_GLOBAL() {}

is it possible to get it's name inside it like below;

public static void POP_YTL_GLOBAL()
{
string nameOfFunction = // How to get POP_YTL_GLOBAL automatically in here.
}

Any help would be grateful.
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Skale
Skale

ASKER

Thank you it worked :)