Block Method (Type, Expression[])

Expression.Block Method (Type, Expression())

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a BlockExpression that contains the given expressions, has no variables and has specific result type.

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

'Declaration
Public Shared Function Block ( _
	type As Type, _
	ParamArray expressions As Expression() _
) As BlockExpression

Parameters

type
Type: System.Type
The result type of the block.
expressions
Type: System.Linq.Expressions.Expression ()
The expressions in the block.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft