ExpressionVisitor.VisitAndConvert<T> Method (T, String)

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

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

public T VisitAndConvert<T>(
	T node,
	string callerName
)
where T : Expression

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.

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: