SyntaxTriviaList.Insert(Int32, SyntaxTrivia) 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 SyntaxTriviaList with the specified trivia inserted at the index.
public:
Microsoft::CodeAnalysis::SyntaxTriviaList Insert(int index, Microsoft::CodeAnalysis::SyntaxTrivia trivia);
public Microsoft.CodeAnalysis.SyntaxTriviaList Insert (int index, Microsoft.CodeAnalysis.SyntaxTrivia trivia);
member this.Insert : int * Microsoft.CodeAnalysis.SyntaxTrivia -> Microsoft.CodeAnalysis.SyntaxTriviaList
Public Function Insert (index As Integer, trivia As SyntaxTrivia) As SyntaxTriviaList
Parameters
- index
- Int32
The index in the list to insert the trivia at.
- trivia
- SyntaxTrivia
The trivia to insert.
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.