C# 클래스 System.Dynamic.BindingRestrictions

파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

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