SeparatedSyntaxList<TNode>.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 list with the specified element replaced by the new nodes.
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)
Parameters
- nodeInList
- TNode
The element to replace.
- newNodes
- IEnumerable<TNode>
The new nodes.
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.