Given a MethodName method with a signature void MethodName(int num) , this will be done something like this:
MethodInfo method = obj.GetType().GetMethod("MethodName", BindingFlags.Public|BindingFlags.Instance) method.Invoke(obj, 4)
Hope this helps.
source share