Microsoft.CodeAnalysis.SyntaxNodeOrTokenList.ToString C# (CSharp) Méthode

ToString() public méthode

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

Usage Example

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