public void AddMethodDelegate(MethodDescriptor method)
 {
     method.InvokerDelegate = DelegateHelper.ConstructDelegateCallFunc(method.Method, this.Type);
 }
 public void AddEventInvokerDelegate(EventDescriptor ev)
 {
     ev.InvokerDelegate = DelegateHelper.ConstructDelegateCallVoid(ev.InvokeMethod, ev.Event.EventHandlerType);
 }