C# Class System.Dynamic.GetIndexBinder

Represents the dynamic get index operation at the call site, providing the binding semantic and the details about the operation.
Inheritance: DynamicMetaObjectBinder
Show file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Bind ( DynamicMetaObject target, DynamicMetaObject args ) : DynamicMetaObject

Performs the binding of the dynamic get index operation.

FallbackGetIndex ( DynamicMetaObject target, DynamicMetaObject indexes ) : DynamicMetaObject

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

FallbackGetIndex ( DynamicMetaObject target, DynamicMetaObject indexes, DynamicMetaObject errorSuggestion ) : DynamicMetaObject

When overridden in the derived class, performs the binding of the dynamic get index operation if the target dynamic object cannot bind.

Protected Methods

Method Description
GetIndexBinder ( CallInfo callInfo ) : System.Dynamic.Utils

Initializes a new instance of the GetIndexBinder.

Method Details

Bind() public final method

Performs the binding of the dynamic get index operation.
public final Bind ( DynamicMetaObject target, DynamicMetaObject args ) : DynamicMetaObject
target DynamicMetaObject The target of the dynamic get index operation.
args DynamicMetaObject An array of arguments of the dynamic get index operation.
return DynamicMetaObject

FallbackGetIndex() public method

Performs the binding of the dynamic get index operation if the target dynamic object cannot bind.
public FallbackGetIndex ( DynamicMetaObject target, DynamicMetaObject indexes ) : DynamicMetaObject
target DynamicMetaObject The target of the dynamic get index operation.
indexes DynamicMetaObject The arguments of the dynamic get index operation.
return DynamicMetaObject

FallbackGetIndex() public abstract method

When overridden in the derived class, performs the binding of the dynamic get index operation if the target dynamic object cannot bind.
public abstract FallbackGetIndex ( DynamicMetaObject target, DynamicMetaObject indexes, DynamicMetaObject errorSuggestion ) : DynamicMetaObject
target DynamicMetaObject The target of the dynamic get index operation.
indexes DynamicMetaObject The arguments of the dynamic get index operation.
errorSuggestion DynamicMetaObject The binding result to use if binding fails, or null.
return DynamicMetaObject

GetIndexBinder() protected method

Initializes a new instance of the GetIndexBinder.
protected GetIndexBinder ( CallInfo callInfo ) : System.Dynamic.Utils
callInfo CallInfo The signature of the arguments at the call site.
return System.Dynamic.Utils