ExpressionVisitor.VisitAndConvert メソッド

定義

式を走査し、結果を元の式の型にキャストします。

オーバーロード

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

コレクション内のすべての式を走査し、結果を元の式の型にキャストします。

VisitAndConvert<T>(T, String)

式を走査し、結果を元の式の型にキャストします。

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

ソース:
ExpressionVisitor.cs
ソース:
ExpressionVisitor.cs
ソース:
ExpressionVisitor.cs

コレクション内のすべての式を走査し、結果を元の式の型にキャストします。

public:
generic <typename T>
 where T : System::Linq::Expressions::Expression System::Collections::ObjectModel::ReadOnlyCollection<T> ^ VisitAndConvert(System::Collections::ObjectModel::ReadOnlyCollection<T> ^ nodes, System::String ^ callerName);
public System.Collections.ObjectModel.ReadOnlyCollection<T> VisitAndConvert<T> (System.Collections.ObjectModel.ReadOnlyCollection<T> nodes, string callerName) where T : System.Linq.Expressions.Expression;
public System.Collections.ObjectModel.ReadOnlyCollection<T> VisitAndConvert<T> (System.Collections.ObjectModel.ReadOnlyCollection<T> nodes, string? callerName) where T : System.Linq.Expressions.Expression;
member this.VisitAndConvert : System.Collections.ObjectModel.ReadOnlyCollection<'T (requires 'T :> System.Linq.Expressions.Expression)> * string -> System.Collections.ObjectModel.ReadOnlyCollection<'T (requires 'T :> System.Linq.Expressions.Expression)> (requires 'T :> System.Linq.Expressions.Expression)
Public Function VisitAndConvert(Of T As Expression) (nodes As ReadOnlyCollection(Of T), callerName As String) As ReadOnlyCollection(Of T)

型パラメーター

T

式の型。

パラメーター

nodes
ReadOnlyCollection<T>

走査する式。

callerName
String

呼び出し元のメソッドの名前。より正確なエラー メッセージを報告するために使用します。

戻り値

いずれかの式が変更された場合は変更された式のコレクション、それ以外の場合は元の式のコレクションを返します。

例外

いずれかの式の走査メソッドから異なる型が返されました。

適用対象

VisitAndConvert<T>(T, String)

ソース:
ExpressionVisitor.cs
ソース:
ExpressionVisitor.cs
ソース:
ExpressionVisitor.cs

式を走査し、結果を元の式の型にキャストします。

public:
generic <typename T>
 where T : System::Linq::Expressions::Expression T VisitAndConvert(T node, System::String ^ callerName);
public T VisitAndConvert<T> (T node, string callerName) where T : System.Linq.Expressions.Expression;
public T? VisitAndConvert<T> (T? node, string? callerName) where T : System.Linq.Expressions.Expression;
member this.VisitAndConvert : 'T * string -> 'T (requires 'T :> System.Linq.Expressions.Expression)
Public Function VisitAndConvert(Of T As Expression) (node As T, callerName As String) As T

型パラメーター

T

式の型。

パラメーター

node
T

走査する式。

callerName
String

呼び出し元のメソッドの名前。より正確なエラー メッセージを報告するために使用します。

戻り値

T

式またはいずれかの部分式が変更された場合は変更された式。それ以外の場合は元の式。

例外

このノードの走査メソッドから、異なる型が返されました。

適用対象