Send comments on this topic. |
|
DestructorSummaryDocumentationMustBeginWithStandardText |
|
CheckId |
SA1643 |
Category |
Documentation Rules |
Cause
Rule Description
A violation of this rule occurs when the summary tag within the documentation header for a finalizer does not begin with the proper text.
The rule is intended to standardize the summary text for a finalizer. The summary for a finalizer must begin with “Finalizes an instance of the {class name} class.” For example, the following shows the finalizer for the Customer class.
/// <summary>
/// Finalizes an instance of the Customer class.
/// </summary>
~Customer()
{
}
It is possible to embed other tags into the summary text. For example:
/// <summary>
/// Finalizes an instance of the <see cref="Customer"/> class.
/// </summary>
~Customer()
{
}
How to Fix Violations
© Microsoft Corporation. All Rights Reserved.