Udostępnij za pośrednictwem


SyntaxTokenList.InsertRange(Int32, IEnumerable<SyntaxToken>) Method

Definition

Creates a new SyntaxTokenList with the specified tokens insert at the index.

public:
 Microsoft::CodeAnalysis::SyntaxTokenList InsertRange(int index, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxToken> ^ tokens);
public Microsoft.CodeAnalysis.SyntaxTokenList InsertRange (int index, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxToken> tokens);
member this.InsertRange : int * seq<Microsoft.CodeAnalysis.SyntaxToken> -> Microsoft.CodeAnalysis.SyntaxTokenList
Public Function InsertRange (index As Integer, tokens As IEnumerable(Of SyntaxToken)) As SyntaxTokenList

Parameters

index
Int32

The index to insert the new tokens.

tokens
IEnumerable<SyntaxToken>

The tokens to insert.

Returns

Applies to