jeudi 26 octobre 2017

Disabling the functions in a string c#

I know that we can call functions with their name stored in a string like this:

Type thisType = this.GetType();
MethodInfo theMethod = thisType.GetMethod(TheCommandString);
theMethod.Invoke(this, userParameters);

Is their any way in C# by which I can call all the functions in the class except the function in a string?

Want it in late binding, as I have array of strings which includes the methods name which needs to be discarded from the execution.





Aucun commentaire:

Enregistrer un commentaire