Export (0) Print
Expand All

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

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:
© 2014 Microsoft