Condividi tramite


SyntaxNodeOrTokenList.ReplaceRange Metodo

Definizione

Crea un nuovo SyntaxNodeOrTokenList oggetto con l'elemento specificato sostituito con nuovi nodi e token.

public:
 Microsoft::CodeAnalysis::SyntaxNodeOrTokenList ReplaceRange(Microsoft::CodeAnalysis::SyntaxNodeOrToken nodeOrTokenInList, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxNodeOrToken> ^ newNodesAndTokens);
public Microsoft.CodeAnalysis.SyntaxNodeOrTokenList ReplaceRange (Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrTokenInList, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNodeOrToken> newNodesAndTokens);
member this.ReplaceRange : Microsoft.CodeAnalysis.SyntaxNodeOrToken * seq<Microsoft.CodeAnalysis.SyntaxNodeOrToken> -> Microsoft.CodeAnalysis.SyntaxNodeOrTokenList
Public Function ReplaceRange (nodeOrTokenInList As SyntaxNodeOrToken, newNodesAndTokens As IEnumerable(Of SyntaxNodeOrToken)) As SyntaxNodeOrTokenList

Parametri

nodeOrTokenInList
SyntaxNodeOrToken

Elemento da sostituire.

newNodesAndTokens
IEnumerable<SyntaxNodeOrToken>

Nuovi nodi e token.

Restituisce

Si applica a