Exemplo n.º 1
0
        public Delegate CreateNewDelegate(Type targetDelegateType, JsFunction jsfunc)
        {
            DelegateHolder newHolder = this.holder.New();

            newHolder.jsFunc = jsfunc;
            return(Delegate.CreateDelegate(targetDelegateType,
                                           newHolder,
                                           this.holder.InvokeMethodInfo));
        }
Exemplo n.º 2
0
 public DelegateTemplate(Type delHolderType, DelegateHolder holder)
 {
     this.delHolderType = delHolderType;
     this.holder        = holder;
 }