Fri, 17 May 2024


Invoke a method with Reflection

By: Peter, NetArt Media
Sun, 23 August 2020

// dynamically create or activate(if exist) object
object obj = Activator.CreateInstance(strType);

// get required method by specifying name
MethodInfo mi = typ.GetMethod(strMethodName);
mi.Invoke(0, null);


Category: Web Development
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox