About
Pricing
Community
Teams
Start Free Trial
Log in
Skale
asked on
12/11/2019
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.
C#
3
2
Last Comment
Skale
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Chris Stanyon
12/11/2019
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Norie
12/11/2019
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Skale
12/11/2019
ASKER
Thank you it worked :)
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23