Represents the convert dynamic operation at the call site, providing the binding semantic and the details about the operation.
More...
|
| ConvertBinder (Type type, bool @explicit) |
| Initializes a new instance of the T:System.Dynamic.ConvertBinder. More...
|
|
| DynamicMetaObjectBinder () |
| Initializes a new instance of the T:System.Dynamic.DynamicMetaObjectBinder class. More...
|
|
| 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...
|
|
|
Type | Type [get] |
| The type to convert to. More...
|
|
bool | Explicit [get] |
| Gets the value indicating if the conversion should consider explicit conversions. More...
|
|
sealed override Type | ReturnType [get] |
| The result type of the operation. More...
|
|
virtual Type | ReturnType [get] |
| The result type of the operation. More...
|
|
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...
|
|
Represents the convert dynamic operation at the call site, providing the binding semantic and the details about the operation.
Definition at line 7 of file ConvertBinder.cs.
◆ ConvertBinder()
System.Dynamic.ConvertBinder.ConvertBinder |
( |
Type |
type, |
|
|
bool @ |
explicit |
|
) |
| |
|
protected |
Initializes a new instance of the T:System.Dynamic.ConvertBinder.
- Parameters
-
type | The type to convert to. |
explicit | Is true if the conversion should consider explicit conversions; otherwise, false. |
Definition at line 56 of file ConvertBinder.cs.
◆ Bind()
Performs the binding of the dynamic convert operation.
- Parameters
-
target | The target of the dynamic convert operation. |
args | An array of arguments of the dynamic convert operation. |
- Returns
- The T:System.Dynamic.DynamicMetaObject representing the result of the binding.
Implements System.Dynamic.DynamicMetaObjectBinder.
Definition at line 84 of file ConvertBinder.cs.
◆ FallbackConvert() [1/2]
Performs the binding of the dynamic convert operation if the target dynamic object cannot bind.
- Parameters
-
target | The target of the dynamic convert operation. |
- Returns
- The T:System.Dynamic.DynamicMetaObject representing the result of the binding.
Definition at line 67 of file ConvertBinder.cs.
◆ FallbackConvert() [2/2]
When overridden in the derived class, performs the binding of the dynamic convert operation if the target dynamic object cannot bind.
- Parameters
-
target | The target of the dynamic convert operation. |
errorSuggestion | The binding result to use if binding fails, or null. |
- Returns
- The T:System.Dynamic.DynamicMetaObject representing the result of the binding.
◆ Explicit
bool System.Dynamic.ConvertBinder.Explicit |
|
get |
Gets the value indicating if the conversion should consider explicit conversions.
- Returns
True
if there is an explicit conversion, otherwise false
.
Definition at line 30 of file ConvertBinder.cs.
◆ ReturnType
sealed override Type System.Dynamic.ConvertBinder.ReturnType |
|
get |
The result type of the operation.
- Returns
- The T:System.Type object representing the result type of the operation.
Definition at line 44 of file ConvertBinder.cs.
◆ Type
Type System.Dynamic.ConvertBinder.Type |
|
get |
The type to convert to.
- Returns
- The T:System.Type object that represents the type to convert to.
Definition at line 17 of file ConvertBinder.cs.
The documentation for this class was generated from the following file: