mscorlib(4.0.0.0) API with additions
System.Dynamic.BindingRestrictions Class Referenceabstract

Represents a set of binding restrictions on the T:System.Dynamic.DynamicMetaObject under which the dynamic binding is valid. More...

Collaboration diagram for System.Dynamic.BindingRestrictions:
[legend]

Public Member Functions

BindingRestrictions Merge (BindingRestrictions restrictions)
 Merges the set of binding restrictions with the current binding restrictions. More...
 
Expression ToExpression ()
 Creates the T:System.Linq.Expressions.Expression representing the binding restrictions. More...
 

Static Public Member Functions

static BindingRestrictions GetTypeRestriction (Expression expression, Type type)
 Creates the binding restriction that check the expression for runtime type identity. More...
 
static BindingRestrictions GetInstanceRestriction (Expression expression, object instance)
 Creates the binding restriction that checks the expression for object instance identity. More...
 
static BindingRestrictions GetExpressionRestriction (Expression expression)
 Creates the binding restriction that checks the expression for arbitrary immutable properties. More...
 
static BindingRestrictions Combine (IList< DynamicMetaObject > contributingObjects)
 Combines binding restrictions from the list of T:System.Dynamic.DynamicMetaObject instances into one set of restrictions. More...
 

Static Public Attributes

static readonly BindingRestrictions Empty = new CustomRestriction(Expression.Constant(true))
 Represents an empty set of binding restrictions. This field is read only. More...
 

Detailed Description

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.

Member Function Documentation

◆ Combine()

static BindingRestrictions System.Dynamic.BindingRestrictions.Combine ( IList< DynamicMetaObject contributingObjects)
static

Combines binding restrictions from the list of T:System.Dynamic.DynamicMetaObject instances into one set of restrictions.

Parameters
contributingObjectsThe 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()

static BindingRestrictions System.Dynamic.BindingRestrictions.GetExpressionRestriction ( Expression  expression)
static

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

Parameters
expressionThe expression representing the restrictions.
Returns
The new binding restrictions.

Definition at line 301 of file BindingRestrictions.cs.

◆ GetInstanceRestriction()

static BindingRestrictions System.Dynamic.BindingRestrictions.GetInstanceRestriction ( Expression  expression,
object  instance 
)
static

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

Parameters
expressionThe expression to test.
instanceThe exact object instance to test.
Returns
The new binding restrictions.

Definition at line 291 of file BindingRestrictions.cs.

◆ GetTypeRestriction()

static BindingRestrictions System.Dynamic.BindingRestrictions.GetTypeRestriction ( Expression  expression,
Type  type 
)
static

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

Parameters
expressionThe expression to test.
typeThe exact type to test.
Returns
The new binding restrictions.

Definition at line 270 of file BindingRestrictions.cs.

◆ Merge()

BindingRestrictions System.Dynamic.BindingRestrictions.Merge ( BindingRestrictions  restrictions)

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

Parameters
restrictionsThe 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.

Member Data Documentation

◆ 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: