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.
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: TThe 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: