0

Are there any xml tags recognised by any official C# documentation (and recognised by IntelliSense) that are used exclusively for content that serves as a warning or very important information regarding the use a class or method etc?

Failing that, what is the best way of documenting a warning or important information in XML comments?

1 Answer 1

2

It doesn't seem that there is any specific dedicated tag for doing this. In the few instances that I've needed to add warnings/important comments to methods, I used the remarks tag e.g.

/// <summary>
/// General info on the method
/// </summary>
/// <remarks>WARNING: Important information on the method</remarks>
public void Method()
{
    // Method content
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.