/// <summary> /// 返回强类型委托 /// </summary> /// <typeparam name="S">委托的强类型</typeparam> /// <returns></returns> public virtual S Complie <S>(object binder = null) where S : Delegate { Complier.Add(this); return(Complier.GetDelegate <S>( OopNameScript, MethodNameScript, binder)); }
/// <summary> /// 编译返回委托 /// </summary> /// <returns></returns> public virtual Delegate Complie(object binder = null) { Complier.Add(this); return(Complier.GetDelegate( OopNameScript, MethodNameScript, DelegateType, binder)); }