Microsoft.CodeAnalysis.SyntaxNodeOrTokenList.ToFullString C# (CSharp) Method

ToFullString() public method

Returns the full string representation of the nodes and tokens in this list including the first node or token's leading trivia and the last node or token's trailing trivia.
public ToFullString ( ) : string
return string
        public string ToFullString()
        {
            return _node != null
                ? _node.ToFullString()
                : string.Empty;
        }

Usage Example

 /// <summary>
 /// Returns the full string representation of the nodes in this list including separators,
 /// the first node's leading trivia, and the last node or token's trailing trivia.
 /// </summary>
 /// <returns>
 /// The full string representation of the nodes in this list including separators including separators,
 /// the first node's leading trivia, and the last node or token's trailing trivia.
 /// </returns>
 public string ToFullString()
 {
     return(_list.ToFullString());
 }