C# Класс System.Dynamic.BindingRestrictions

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
BindingRestrictions System.Collections.Generic
GetExpression System.Linq.Expressions.Expression
GetTypeRestriction BindingRestrictions

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Combine() публичный статический Метод

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.
Результат BindingRestrictions

GetExpressionRestriction() публичный статический Метод

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.
Результат BindingRestrictions

GetInstanceRestriction() публичный статический Метод

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.
Результат BindingRestrictions

GetTypeRestriction() публичный статический Метод

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.
Результат BindingRestrictions

Merge() публичный Метод

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.
Результат BindingRestrictions

ToExpression() публичный Метод

Creates the Expression representing the binding restrictions.
public ToExpression ( ) : Expression
Результат System.Linq.Expressions.Expression