Condividi tramite


SyntaxNodeOrTokenList.Replace(SyntaxNodeOrToken, SyntaxNodeOrToken) Metodo

Definizione

Crea un nuovo SyntaxNodeOrTokenList oggetto con l'elemento specificato sostituito con un nuovo nodo o un token.

public:
 Microsoft::CodeAnalysis::SyntaxNodeOrTokenList Replace(Microsoft::CodeAnalysis::SyntaxNodeOrToken nodeOrTokenInList, Microsoft::CodeAnalysis::SyntaxNodeOrToken newNodeOrToken);
public Microsoft.CodeAnalysis.SyntaxNodeOrTokenList Replace (Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrTokenInList, Microsoft.CodeAnalysis.SyntaxNodeOrToken newNodeOrToken);
member this.Replace : Microsoft.CodeAnalysis.SyntaxNodeOrToken * Microsoft.CodeAnalysis.SyntaxNodeOrToken -> Microsoft.CodeAnalysis.SyntaxNodeOrTokenList
Public Function Replace (nodeOrTokenInList As SyntaxNodeOrToken, newNodeOrToken As SyntaxNodeOrToken) As SyntaxNodeOrTokenList

Parametri

nodeOrTokenInList
SyntaxNodeOrToken

Elemento da sostituire.

newNodeOrToken
SyntaxNodeOrToken

Nuovo nodo o token.

Restituisce

Si applica a