예제 #1
0
        public Delegate CreateNewDelegate(Type targetDelegateType, JsFunction jsfunc)
        {
            DelegateHolder newHolder = this.holder.New();

            newHolder._jsFunc = jsfunc;
#if NET20
            return(Delegate.CreateDelegate(targetDelegateType,
                                           newHolder,
                                           this.holder.InvokeMethodInfo));
#else
            return(this.holder.InvokeMethodInfo.CreateDelegate(targetDelegateType, newHolder));
#endif
        }
예제 #2
0
 public DelegateTemplate(Type delHolderType, DelegateHolder holder)
 {
     this.delHolderType = delHolderType;
     this.holder        = holder;
 }