VisitAndConvert(T) Method (T, String)
Collapse the table of content
Expand the table of content

ExpressionVisitor.VisitAndConvert(Of T) Method (T, String)

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

Visits an expression, casting the result back to the original expression type.

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

'Declaration
Public Function VisitAndConvert(Of T As Expression) ( _
	node As T, _
	callerName As String _
) As T

Type Parameters

T

The type of the expression.

Parameters

node
Type: T
The expression to visit.
callerName
Type: System.String
The name of the calling method; used to report to report a better error message.

Return Value

Type: T
The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

ExceptionCondition
InvalidOperationException

The visit method for this node returned a different type.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft