Пример #1
0
 public NewInstanceExpression(EasyCallable callable, params Expression[] args) : this(callable.Constructor, args)
 {
 }
Пример #2
0
        protected void RegisterDelegateFieldToBeInitialized(MethodInfo method, FieldReference field, EasyCallable builder, MethodInfo callbackMethod)
        {
            int emptyIndex = CallableField.EmptyIndex;

            if (this.Context.HasMixins && this._interface2mixinIndex.Contains(method.DeclaringType))
            {
                emptyIndex = (int)this._interface2mixinIndex[method.DeclaringType];
            }
            this._cachedFields.Add(new CallableField(field, builder, callbackMethod, emptyIndex));
        }