Click or drag to resize

VisualBasicExtensionsInsert Method



Insert one or more tokens in the list at the specified index.

Namespace:  Microsoft.CodeAnalysis.VisualBasic
Assembly:  Microsoft.CodeAnalysis.VisualBasic (in Microsoft.CodeAnalysis.VisualBasic.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public static SyntaxTokenList Insert(
	this SyntaxTokenList list,
	int index,
	params SyntaxToken[] items
)

Parameters

list
Type: Microsoft.CodeAnalysisSyntaxTokenList
index
Type: SystemInt32
items
Type: Microsoft.CodeAnalysisSyntaxToken

Return Value

Type: SyntaxTokenList
A new list with the tokens inserted.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SyntaxTokenList. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also