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 }
public DelegateTemplate(Type delHolderType, DelegateHolder holder) { this.delHolderType = delHolderType; this.holder = holder; }