Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

reflection static method c#

foreach (var tempClass in macroClasses)
{
   // using reflection I will be able to run the method as:
   tempClass.GetMethod("Run").Invoke(null, null);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reflection #static #method
ADD COMMENT
Topic
Name
5+5 =