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

BindingRestrictions

public abstract class BindingRestrictions
Represents a set of binding restrictions on the DynamicMetaObject under which the dynamic binding is valid.
public static readonly BindingRestrictions Empty

Represents an empty set of binding restrictions. This field is read only.

public static BindingRestrictions Combine(IList<DynamicMetaObject> contributingObjects)

Combines binding restrictions from the list of DynamicMetaObject instances into one set of restrictions.

Creates the binding restriction that checks the expression for arbitrary immutable properties.

public static BindingRestrictions GetInstanceRestriction(Expression expression, object instance)

Creates the binding restriction that checks the expression for object instance identity.

public static BindingRestrictions GetTypeRestriction(Expression expression, Type type)

Creates the binding restriction that check the expression for runtime type identity.

Merges the set of binding restrictions with the current binding restrictions.

Creates the Expression representing the binding restrictions.