Condividi tramite


SeparatedSyntaxList<TNode>.ReplaceRange Metodo

Definizione

Crea un nuovo elenco con l'elemento specificato sostituito dai nuovi nodi.

public:
 Microsoft::CodeAnalysis::SeparatedSyntaxList<TNode> ReplaceRange(TNode nodeInList, System::Collections::Generic::IEnumerable<TNode> ^ newNodes);
public Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> ReplaceRange (TNode nodeInList, System.Collections.Generic.IEnumerable<TNode> newNodes);
member this.ReplaceRange : 'Node * seq<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> -> Microsoft.CodeAnalysis.SeparatedSyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)>
Public Function ReplaceRange (nodeInList As TNode, newNodes As IEnumerable(Of TNode)) As SeparatedSyntaxList(Of TNode)

Parametri

nodeInList
TNode

Elemento da sostituire.

newNodes
IEnumerable<TNode>

Nuovi nodi.

Restituisce

Si applica a