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

ExpressionVisitor.VisitAndConvert<T> Method (ReadOnlyCollection<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)

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

Type Parameters

T

The type of the expression.

Parameters

nodes
Type: System.Collections.ObjectModel.ReadOnlyCollection<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: System.Collections.ObjectModel.ReadOnlyCollection<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