Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


ExpressionVisitor.VisitAndConvert Method

Definition

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

Overloads

VisitAndConvert<T>(ReadOnlyCollection<T>, String)

Visits all expressions in the collection, casting the results back to the original expression type.

VisitAndConvert<T>(T, String)

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

VisitAndConvert<T>(ReadOnlyCollection<T>, String)

Source:
ExpressionVisitor.cs
Source:
ExpressionVisitor.cs
Source:
ExpressionVisitor.cs

Visits all expressions in the collection, casting the results back to the original expression type.

C#
public System.Collections.ObjectModel.ReadOnlyCollection<T> VisitAndConvert<T>(System.Collections.ObjectModel.ReadOnlyCollection<T> nodes, string callerName) where T : System.Linq.Expressions.Expression;
C#
public System.Collections.ObjectModel.ReadOnlyCollection<T> VisitAndConvert<T>(System.Collections.ObjectModel.ReadOnlyCollection<T> nodes, string? callerName) where T : System.Linq.Expressions.Expression;

Type Parameters

T

The type of the expressions.

Parameters

nodes
ReadOnlyCollection<T>

The expressions to visit.

callerName
String

The name of the calling method; used to report a better error message.

Returns

The modified expression collection, if any expression was modified; otherwise, returns the original expression collection.

Exceptions

The visit method for one of the expressions returned a different type.

Applies to

.NET 10 és más verziók
Termék Verziók
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0

VisitAndConvert<T>(T, String)

Source:
ExpressionVisitor.cs
Source:
ExpressionVisitor.cs
Source:
ExpressionVisitor.cs

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

C#
public T VisitAndConvert<T>(T node, string callerName) where T : System.Linq.Expressions.Expression;
C#
public T? VisitAndConvert<T>(T? node, string? callerName) where T : System.Linq.Expressions.Expression;

Type Parameters

T

The type of the expression.

Parameters

node
T

The expression to visit.

callerName
String

The name of the calling method; used to report to report a better error message.

Returns

T

The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.

Exceptions

The visit method for this node returned a different type.

Applies to

.NET 10 és más verziók
Termék Verziók
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0