摘要:
通過 Delegate.CreateDelegate方法實現動態執行指定方法聲明委託:publicdelegatevoidDelegateMethod();實例化方法調用ClassNameclassInstance=newClassName();BindingFlagsflags=BindingFlags.Public|BindingFlags.Instance;MethodInfominfo=typeof(ClassName).GetMethod("MethodName",flags);DelegateMethoddm=(DelegateMethod)Delegate.C 阅读全文