AddTrailingComment(T, String) Method

Definition

Namespace Tomlyn.Syntax
Assembly Tomlyn.dll

Adds a trailing comment to the node.

public static T AddTrailingComment<T>(this T node, string comment)
    where T : SyntaxNode

Type parameters

T
The node type.

Parameters

node
{T}

The target node.

comment
String

The comment text.

Returns

{T}
The same node.