System.Dynamic.InvokeMemberBinder.FallbackInvoke C# (CSharp) 메소드

FallbackInvoke() 공개 추상적인 메소드

When overridden in the derived class, performs the binding of the dynamic invoke operation if the target dynamic object cannot bind.
This method is called by the target when the target implements the invoke member operation as a sequence of get member, and invoke, to let the DynamicMetaObject request the binding of the invoke operation only.
public abstract FallbackInvoke ( DynamicMetaObject target, DynamicMetaObject args, DynamicMetaObject errorSuggestion ) : DynamicMetaObject
target DynamicMetaObject The target of the dynamic invoke operation.
args DynamicMetaObject The arguments of the dynamic invoke operation.
errorSuggestion DynamicMetaObject The binding result to use if binding fails, or null.
리턴 DynamicMetaObject
        public abstract DynamicMetaObject FallbackInvoke(DynamicMetaObject target, DynamicMetaObject[] args, DynamicMetaObject errorSuggestion);
    }

Usage Example

예제 #1
0
        public override DynamicMetaObject BindInvokeMember(InvokeMemberBinder binder, DynamicMetaObject[] args) {
            var result = TryBindGetMember(binder.Name);
            if (result != null) {
                return binder.FallbackInvoke(result, args, null);
            }

            return base.BindInvokeMember(binder, args);
        }
All Usage Examples Of System.Dynamic.InvokeMemberBinder::FallbackInvoke