<PackageReference Include="System.Dynamic.Runtime" Version="4.0.11-beta-23409" />

ConvertBinder

public abstract class ConvertBinder : DynamicMetaObjectBinder
Represents the convert dynamic operation at the call site, providing the binding semantic and the details about the operation.
public bool Explicit { get; }

Gets the value indicating if the conversion should consider explicit conversions.

public Type Type { get; }

The type to convert to.

protected ConvertBinder(Type type, bool explicit)

Initializes a new instance of the ConvertBinder.

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

public abstract DynamicMetaObject FallbackConvert(DynamicMetaObject target, DynamicMetaObject errorSuggestion)

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