Ce sujet n'a pas encore été évalué - Évaluez ce sujet

ExpressionVisitor.VisitAndConvert<T> Method (ReadOnlyCollection<T>, String)

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

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)
public ReadOnlyCollection<T> VisitAndConvert<T>(
	ReadOnlyCollection<T> nodes,
	string callerName
)
where T : Expression

Type Parameters

T

The type of the expression.

Parameters

nodes
Type: System.Collections.ObjectModel.ReadOnlyCollection<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: System.Collections.ObjectModel.ReadOnlyCollection<T>
The modified expression, if it or any subexpression was modified; otherwise, returns the original expression.
ExceptionCondition
InvalidOperationException

The visit method for this node returned a different type.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Cela vous a-t-il été utile ?
(1500 caractères restants)

Ajouts de la communauté

AJOUTER
© 2013 Microsoft. Tous droits réservés.