I have a Class by name of GoldClass
. It has four methods by names F()
,S()
,TH()
,Fo()
. In the methods FO()
. I want to call three other methods (F,S,TH) but just use their names like this.
public void Fo()
{
list <string> FuncsList=new list<string>();
FuncsList.Add("F");
FuncsList.Add("S");
FuncsList.Add("TH");
//NOW I WANT TO CALL THEM BUT USE MY STRINGS IN MY FUNCSLIST
}
I used Reflection at first ... but I am assigning some values to public variables in my class..and when reflection make new instance all my data in public variables is lost.