CreateInstanceBinder.FallbackCreateInstance Method

Definition

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

Overloads

FallbackCreateInstance(DynamicMetaObject, DynamicMetaObject[])

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

FallbackCreateInstance(DynamicMetaObject, DynamicMetaObject[], DynamicMetaObject)

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

FallbackCreateInstance(DynamicMetaObject, DynamicMetaObject[])

Source:
CreateInstanceBinder.cs
Source:
CreateInstanceBinder.cs
Source:
CreateInstanceBinder.cs

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

C#
public System.Dynamic.DynamicMetaObject FallbackCreateInstance (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args);

Parameters

target
DynamicMetaObject

The target of the dynamic create operation.

args
DynamicMetaObject[]

The arguments of the dynamic create operation.

Returns

The DynamicMetaObject representing the result of the binding.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

FallbackCreateInstance(DynamicMetaObject, DynamicMetaObject[], DynamicMetaObject)

Source:
CreateInstanceBinder.cs
Source:
CreateInstanceBinder.cs
Source:
CreateInstanceBinder.cs

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

C#
public abstract System.Dynamic.DynamicMetaObject FallbackCreateInstance (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject errorSuggestion);
C#
public abstract System.Dynamic.DynamicMetaObject FallbackCreateInstance (System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[] args, System.Dynamic.DynamicMetaObject? errorSuggestion);

Parameters

target
DynamicMetaObject

The target of the dynamic create operation.

args
DynamicMetaObject[]

The arguments of the dynamic create operation.

errorSuggestion
DynamicMetaObject

The binding result to use if binding fails, or null.

Returns

The DynamicMetaObject representing the result of the binding.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0