reflection static method csharp

Code Example - reflection static method csharp

                
                        foreach (var tempClass in macroClasses)
{
   // using reflection I will be able to run the method as:
   tempClass.GetMethod("Run").Invoke(null, null);
}