getting all public methods in a class
-
hi all, how can i get the names of all public methods in a class thanx in advance coolsweety
-
hi all, how can i get the names of all public methods in a class thanx in advance coolsweety
-
Here is the code:
Type methodclassType = myClass.GetType(); MethodInfo[]infos = methodclassType.GetMethods()
Best regards, Alexey.hi thanx, now i need a small help. here is my requirement i am create one application. And which uses reflection, by using this i am all my public methods. now i want to know that is it possible to get the contents inside a public method(in this application i am loading only the assemblies) once again thanx coolsweety
-
hi thanx, now i need a small help. here is my requirement i am create one application. And which uses reflection, by using this i am all my public methods. now i want to know that is it possible to get the contents inside a public method(in this application i am loading only the assemblies) once again thanx coolsweety
What do you mean with 'contents'? The code? You can surely fetch the IL code but this probably won't help you much. There also (complicated) ways to transform it back to C# code but it will never look exactly like the original code.
-
What do you mean with 'contents'? The code? You can surely fetch the IL code but this probably won't help you much. There also (complicated) ways to transform it back to C# code but it will never look exactly like the original code.
thanx, i need to get the code back and to write some thing to that assembly, is it possible thanx once again coolsweety