C# Class System.Dynamic.BindingRestrictions

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
BindingRestrictions System.Collections.Generic
GetExpression System.Linq.Expressions.Expression
GetTypeRestriction BindingRestrictions

Méthodes publiques

Méthode Description
Combine ( IList contributingObjects ) : BindingRestrictions

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

GetExpressionRestriction ( Expression expression ) : BindingRestrictions

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

By convention, the general restrictions created by this method must only test immutable object properties.

GetInstanceRestriction ( Expression expression, object instance ) : BindingRestrictions

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

GetTypeRestriction ( Expression expression, Type type ) : BindingRestrictions

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

Merge ( BindingRestrictions restrictions ) : BindingRestrictions

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

ToExpression ( ) : Expression

Creates the Expression representing the binding restrictions.

Private Methods

Méthode Description
BindingRestrictions ( ) : System.Collections.Generic
GetExpression ( ) : Expression
GetTypeRestriction ( DynamicMetaObject obj ) : BindingRestrictions

The method takes a DynamicMetaObject, and returns an instance restriction for testing null if the object holds a null value, otherwise returns a type restriction.

Method Details

Combine() public static méthode

Combines binding restrictions from the list of DynamicMetaObject instances into one set of restrictions.
public static Combine ( IList contributingObjects ) : BindingRestrictions
contributingObjects IList The list of instances from which to combine restrictions.
Résultat BindingRestrictions

GetExpressionRestriction() public static méthode

Creates the binding restriction that checks the expression for arbitrary immutable properties.
By convention, the general restrictions created by this method must only test immutable object properties.
public static GetExpressionRestriction ( Expression expression ) : BindingRestrictions
expression System.Linq.Expressions.Expression The expression expressing the restrictions.
Résultat BindingRestrictions

GetInstanceRestriction() public static méthode

Creates the binding restriction that checks the expression for object instance identity.
public static GetInstanceRestriction ( Expression expression, object instance ) : BindingRestrictions
expression System.Linq.Expressions.Expression The expression to test.
instance object The exact object instance to test.
Résultat BindingRestrictions

GetTypeRestriction() public static méthode

Creates the binding restriction that check the expression for runtime type identity.
public static GetTypeRestriction ( Expression expression, Type type ) : BindingRestrictions
expression System.Linq.Expressions.Expression The expression to test.
type Type The exact type to test.
Résultat BindingRestrictions

Merge() public méthode

Merges the set of binding restrictions with the current binding restrictions.
public Merge ( BindingRestrictions restrictions ) : BindingRestrictions
restrictions BindingRestrictions The set of restrictions with which to merge the current binding restrictions.
Résultat BindingRestrictions

ToExpression() public méthode

Creates the Expression representing the binding restrictions.
public ToExpression ( ) : Expression
Résultat System.Linq.Expressions.Expression