BindingRestrictions.GetTypeRestriction Method

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

Namespace:  System.Dynamic
Assembly:  System.Core (in System.Core.dll)

public static BindingRestrictions GetTypeRestriction(
	Expression expression,
	Type type
)

Parameters

expression
Type: System.Linq.Expressions.Expression
The expression to test.
type
Type: System.Type
The exact type to test.

Return Value

Type: System.Dynamic.BindingRestrictions
The new binding restrictions.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: