ExpressionVisitor.VisitAndConvert 메서드

정의

식을 방문하여 결과를 원래 식 형식으로 다시 캐스팅합니다.

오버로드

Name Description
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

호출 메서드의 이름입니다. 는 더 나은 오류 메시지를 보고하는 데 사용됩니다.

반품

식이 수정된 경우 수정된 식 컬렉션입니다. 그렇지 않으면 원래 식 컬렉션을 반환합니다.

예외

식 중 하나에 대한 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 메서드는 다른 형식을 반환했습니다.

적용 대상