SyntaxNodeOrTokenList.ReplaceRange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new SyntaxNodeOrTokenList with the specified element replaced with a new nodes and tokens.
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
Parameters
- nodeOrTokenInList
- SyntaxNodeOrToken
The element to replace.
- newNodesAndTokens
- IEnumerable<SyntaxNodeOrToken>
The new nodes and tokens.
Returns
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.