示例#1
0
 /// <summary>
 /// 编译返回委托
 /// </summary>
 /// <returns></returns>
 public virtual Delegate Complie(object binder = null)
 {
     Complier.Add(this);
     return(Complier.GetDelegate(
                OopNameScript,
                MethodNameScript,
                DelegateType,
                binder));
 }
示例#2
0
        /// <summary>
        /// 编译返回委托
        /// </summary>
        /// <returns></returns>
        public virtual Delegate Complie(object binder = null)
        {
            Complier.Add(this);
            var @delegate = Complier.GetDelegate(
                OopNameScript,
                MethodNameScript,
                DelegateType,
                binder);


            if (_inCache)
            {
                @delegate.AddInCache(Complier.Domain);
            }
            return(@delegate);
        }