ExpressionVisitor.VisitAndConvert メソッド

定義

式にアクセスし、結果を元の式型にキャストします。

オーバーロード

名前 説明
VisitAndConvert<T>(ReadOnlyCollection<T>, String)

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

VisitAndConvert<T>(T, String)

式にアクセスし、結果を元の式型にキャストします。

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

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

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;
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

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

返品

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

例外

式の 1 つの visit メソッドは、別の型を返しました。

適用対象

VisitAndConvert<T>(T, String)

式にアクセスし、結果を元の式型にキャストします。

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;
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

変更された式 (その式または部分式が変更された場合)。それ以外の場合は、元の式を返します。

例外

このノードの visit メソッドは、別の型を返しました。

適用対象