10

In the following example, & and Δ are OK but Δ is not (the latter two are both Δ). The compiler issues a warning similar to:

 warning CS1570: XML comment on 'XXX.DocumentedMethod()' has badly formed XML -- 'Reference to undefined entity 'Delta'.' 
 /// <summary> /// &amp; &Delta; &#916; /// </summary> public void DocumentedMethod() { } 

What are the supported character entities for XML comments?

1 Answer 1

11

It's not a matter of comments, it's XML itself. XML only inherently knows about &amp;, &lt;, &gt;, &apos; and &quot; as well as the numeric entities. Anything else has to be declared explicitly.

See section 4.6 of the spec for further information.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks! I am honored that Jon Skeet answered my question =)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.