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.
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.
| Exception | Condition |
|---|---|
| InvalidOperationException | The visit method for this node returned a different type. |
Show: