Represents a set of binding restrictions on the T:System.Dynamic.DynamicMetaObject under which the dynamic binding is valid.
More...
|
static readonly BindingRestrictions | Empty = new CustomRestriction(Expression.Constant(true)) |
| Represents an empty set of binding restrictions. This field is read only. More...
|
|
Represents a set of binding restrictions on the T:System.Dynamic.DynamicMetaObject under which the dynamic binding is valid.
Definition at line 13 of file BindingRestrictions.cs.
◆ Combine()
Combines binding restrictions from the list of T:System.Dynamic.DynamicMetaObject instances into one set of restrictions.
- Parameters
-
contributingObjects | The list of T:System.Dynamic.DynamicMetaObject instances from which to combine restrictions. |
- Returns
- The new set of binding restrictions.
Definition at line 312 of file BindingRestrictions.cs.
◆ GetExpressionRestriction()
Creates the binding restriction that checks the expression for arbitrary immutable properties.
- Parameters
-
expression | The expression representing the restrictions. |
- Returns
- The new binding restrictions.
Definition at line 301 of file BindingRestrictions.cs.
◆ GetInstanceRestriction()
Creates the binding restriction that checks the expression for object instance identity.
- Parameters
-
expression | The expression to test. |
instance | The exact object instance to test. |
- Returns
- The new binding restrictions.
Definition at line 291 of file BindingRestrictions.cs.
◆ GetTypeRestriction()
Creates the binding restriction that check the expression for runtime type identity.
- Parameters
-
expression | The expression to test. |
type | The exact type to test. |
- Returns
- The new binding restrictions.
Definition at line 270 of file BindingRestrictions.cs.
◆ Merge()
Merges the set of binding restrictions with the current binding restrictions.
- Parameters
-
restrictions | The set of restrictions with which to merge the current binding restrictions. |
- Returns
- The new set of binding restrictions.
Definition at line 251 of file BindingRestrictions.cs.
◆ ToExpression()
Expression System.Dynamic.BindingRestrictions.ToExpression |
( |
| ) |
|
Creates the T:System.Linq.Expressions.Expression representing the binding restrictions.
- Returns
- The expression tree representing the restrictions.
Definition at line 332 of file BindingRestrictions.cs.
◆ Empty
readonly BindingRestrictions System.Dynamic.BindingRestrictions.Empty = new CustomRestriction(Expression.Constant(true)) |
|
static |
Represents an empty set of binding restrictions. This field is read only.
Definition at line 231 of file BindingRestrictions.cs.
The documentation for this class was generated from the following file: