mscorlib(4.0.0.0) API with additions
System.Dynamic.InvokeBinder Class Referenceabstract

Represents the invoke dynamic operation at the call site, providing the binding semantic and the details about the operation. More...

Inheritance diagram for System.Dynamic.InvokeBinder:
[legend]
Collaboration diagram for System.Dynamic.InvokeBinder:
[legend]

Public Member Functions

DynamicMetaObject FallbackInvoke (DynamicMetaObject target, DynamicMetaObject[] args)
 Performs the binding of the dynamic invoke operation if the target dynamic object cannot bind. More...
 
abstract DynamicMetaObject FallbackInvoke (DynamicMetaObject target, DynamicMetaObject[] args, DynamicMetaObject errorSuggestion)
 Performs the binding of the dynamic invoke operation if the target dynamic object cannot bind. More...
 
sealed override DynamicMetaObject Bind (DynamicMetaObject target, DynamicMetaObject[] args)
 Performs the binding of the dynamic invoke operation. More...
 
- Public Member Functions inherited from System.Dynamic.DynamicMetaObjectBinder
sealed override Expression Bind (object[] args, ReadOnlyCollection< ParameterExpression > parameters, LabelTarget returnLabel)
 Performs the runtime binding of the dynamic operation on a set of arguments. More...
 
Expression GetUpdateExpression (Type type)
 Gets an expression that will cause the binding to be updated. It indicates that the expression's binding is no longer valid. This is typically used when the "version" of a dynamic object has changed. More...
 
DynamicMetaObject Defer (DynamicMetaObject target, params DynamicMetaObject[] args)
 Defers the binding of the operation until later time when the runtime values of all dynamic operation arguments have been computed. More...
 
DynamicMetaObject Defer (params DynamicMetaObject[] args)
 Defers the binding of the operation until later time when the runtime values of all dynamic operation arguments have been computed. More...
 
- Public Member Functions inherited from System.Runtime.CompilerServices.CallSiteBinder
virtual T BindDelegate< T > (CallSite< T > site, object[] args)
 Provides low-level runtime binding support. Classes can override this and provide a direct delegate for the implementation of rule. This can enable saving rules to disk, having specialized rules available at runtime, or providing a different caching policy. More...
 

Protected Member Functions

 InvokeBinder (CallInfo callInfo)
 Initializes a new instance of the T:System.Dynamic.InvokeBinder. More...
 
- Protected Member Functions inherited from System.Dynamic.DynamicMetaObjectBinder
 DynamicMetaObjectBinder ()
 Initializes a new instance of the T:System.Dynamic.DynamicMetaObjectBinder class. More...
 
- Protected Member Functions inherited from System.Runtime.CompilerServices.CallSiteBinder
 CallSiteBinder ()
 Initializes a new instance of the T:System.Runtime.CompilerServices.CallSiteBinder class. More...
 
void CacheTarget< T > (T target)
 Adds a target to the cache of known targets. The cached targets will be scanned before calling BindDelegate to produce the new rule. More...
 

Properties

sealed override Type ReturnType [get]
 The result type of the operation. More...
 
CallInfo CallInfo [get]
 Gets the signature of the arguments at the call site. More...
 
- Properties inherited from System.Dynamic.DynamicMetaObjectBinder
virtual Type ReturnType [get]
 The result type of the operation. More...
 
- Properties inherited from System.Runtime.CompilerServices.CallSiteBinder
static LabelTarget UpdateLabel [get]
 Gets a label that can be used to cause the binding to be updated. It indicates that the expression's binding is no longer valid. This is typically used when the "version" of a dynamic object has changed. More...
 

Detailed Description

Represents the invoke dynamic operation at the call site, providing the binding semantic and the details about the operation.

Definition at line 7 of file InvokeBinder.cs.

Constructor & Destructor Documentation

◆ InvokeBinder()

System.Dynamic.InvokeBinder.InvokeBinder ( CallInfo  callInfo)
protected

Initializes a new instance of the T:System.Dynamic.InvokeBinder.

Parameters
callInfoThe signature of the arguments at the call site.

Definition at line 40 of file InvokeBinder.cs.

Member Function Documentation

◆ Bind()

sealed override DynamicMetaObject System.Dynamic.InvokeBinder.Bind ( DynamicMetaObject  target,
DynamicMetaObject []  args 
)
virtual

Performs the binding of the dynamic invoke operation.

Parameters
targetThe target of the dynamic invoke operation.
argsAn array of arguments of the dynamic invoke operation.
Returns
The T:System.Dynamic.DynamicMetaObject representing the result of the binding.

Implements System.Dynamic.DynamicMetaObjectBinder.

Definition at line 69 of file InvokeBinder.cs.

◆ FallbackInvoke() [1/2]

DynamicMetaObject System.Dynamic.InvokeBinder.FallbackInvoke ( DynamicMetaObject  target,
DynamicMetaObject []  args 
)

Performs the binding of the dynamic invoke operation if the target dynamic object cannot bind.

Parameters
targetThe target of the dynamic invoke operation.
argsThe arguments of the dynamic invoke operation.
Returns
The T:System.Dynamic.DynamicMetaObject representing the result of the binding.

Definition at line 51 of file InvokeBinder.cs.

◆ FallbackInvoke() [2/2]

abstract DynamicMetaObject System.Dynamic.InvokeBinder.FallbackInvoke ( DynamicMetaObject  target,
DynamicMetaObject []  args,
DynamicMetaObject  errorSuggestion 
)
pure virtual

Performs the binding of the dynamic invoke operation if the target dynamic object cannot bind.

Parameters
targetThe target of the dynamic invoke operation.
argsThe arguments of the dynamic invoke operation.
errorSuggestionThe binding result to use if binding fails, or null.
Returns
The T:System.Dynamic.DynamicMetaObject representing the result of the binding.

Property Documentation

◆ CallInfo

CallInfo System.Dynamic.InvokeBinder.CallInfo
get

Gets the signature of the arguments at the call site.

Returns
The signature of the arguments at the call site.

Definition at line 27 of file InvokeBinder.cs.

◆ ReturnType

sealed override Type System.Dynamic.InvokeBinder.ReturnType
get

The result type of the operation.

Returns
The T:System.Type object representing the result type of the operation.

Definition at line 15 of file InvokeBinder.cs.


The documentation for this class was generated from the following file: