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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.