DOC103
September 21, 2018 · View on GitHub
| TypeName | DOC103UseUnicodeCharacters |
| CheckId | DOC103 |
| Category | Style Rules |
Cause
The documentation contains an unnecessary or unrecognized HTML character entity.
Rule description
A violation of this rule occurs when documentation an unnecessarily-escaped character, making the documentation more
difficult to read than necessary. The code fix for this diagnostic also helps correct HTML character entity references
(e.g. &rarr), which are not supported by the XML documentation compiler.
/// <summary>
/// A city's graph from A→B.
/// </summary>
public class SomeType
{
}
How to fix violations
To fix a violation of this rule, replace the XML- or HTML-escape sequence with the intended character.
/// <summary>
/// A city's graph from A→B.
/// </summary>
public class SomeType
{
}
How to suppress violations
#pragma warning disable DOC103 // Use Unicode characters
/// <summary>
/// A city's graph from A→B.
/// </summary>
public class SomeType
#pragma warning restore DOC103 // Use Unicode characters
{
}