The method specified by the delegate. createdelegate method is used to implement the dynamic route entry.
Note:
Public Delegate Void Delegatemethod ();
Examples
Classname classinstance = New Classname ();
Bindingflags flags = bindingflags. Public | bindingflags. instance;
Methodinfo minfo = Typeof (Classname). getmethod ( " Methodname " , Flags );
Delegatemethod dm = (delegatemethod) Delegate. createdelegate (Typeof(Delegatemethod), classinstance, minfo,False);
DM ();
Use the merge Method
Bindingflags flags = bindingflags. Public | bindingflags. Static;
Methodinfo minfo = Typeof (Classname). getmethod ( " Methodname " , Flags );
Delegatemethod dm = (delegatemethod) Delegate. createdelegate ( Typeof (Delegatemethod), minfo );
DM ();
Method Name passed through "methodname"
The actual and dynamic methods are not in the bindingflags and createdelegate methods.