XmlCommentSyntax Class

A comment.

public sealed class XmlCommentSyntax : XmlNodeSyntax
Inheritance
XmlNodeSyntax XmlCommentSyntax

Properties

NameDescription
EndCommentToken
StartCommentToken
TextGets the text between the comment delimiters.
TextToken

EndCommentToken

XmlCommentSyntax.cs
public SyntaxToken EndCommentToken { get; }

Property value

SyntaxToken

No documentation is available.

StartCommentToken

XmlCommentSyntax.cs
public SyntaxToken StartCommentToken { get; }

Property value

SyntaxToken

No documentation is available.

Gets the text between the comment delimiters.

public string Text { get; }

Property value

string

public SyntaxToken TextToken { get; }

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(XmlSyntaxVisitor)
Accept<TResult>(XmlSyntaxVisitor<TResult>)
Update(SyntaxToken, SyntaxToken, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithEndCommentToken(SyntaxToken)
WithStartCommentToken(SyntaxToken)
WithText(string)
WithTextToken(SyntaxToken)

Accept overloads

Accept(XmlSyntaxVisitor)

XmlCommentSyntax.cs
public override void Accept(XmlSyntaxVisitor visitor)
Parameters
visitor XmlSyntaxVisitor

No documentation is available.

Accept<TResult>(XmlSyntaxVisitor<TResult>)

XmlCommentSyntax.cs
public override TResult? Accept<TResult>(XmlSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor XmlSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(SyntaxToken, SyntaxToken, SyntaxToken)

XmlCommentSyntax.cs

Returns this node with the given parts, or itself when nothing changed.

public XmlCommentSyntax Update(SyntaxToken startCommentToken, SyntaxToken textToken, SyntaxToken endCommentToken)

Parameters

startCommentToken SyntaxToken
textToken SyntaxToken
endCommentToken SyntaxToken

Returns

XmlCommentSyntax

WithEndCommentToken(SyntaxToken)

XmlCommentSyntax.cs
public XmlCommentSyntax WithEndCommentToken(SyntaxToken endCommentToken)

Parameters

endCommentToken SyntaxToken

Returns

XmlCommentSyntax

No documentation is available.

WithStartCommentToken(SyntaxToken)

XmlCommentSyntax.cs
public XmlCommentSyntax WithStartCommentToken(SyntaxToken startCommentToken)

Parameters

startCommentToken SyntaxToken

Returns

XmlCommentSyntax

No documentation is available.

WithText(string)

XmlCommentSyntax.cs
public XmlCommentSyntax WithText(string text)

Parameters

text string

Returns

XmlCommentSyntax

Exceptions

ArgumentNullException
text is null.

WithTextToken(SyntaxToken)

XmlCommentSyntax.cs
public XmlCommentSyntax WithTextToken(SyntaxToken textToken)

Parameters

textToken SyntaxToken

Returns

XmlCommentSyntax

No documentation is available.