Send comments on this topic. |
|
ElementParameterDocumentationMustMatchElementParameters |
|
CheckId |
SA1612 |
Category |
Documentation Rules |
Cause
Rule Description
A violation of this rule occurs if the documentation for an element’s parameters does not match the actual parameters on the element, or if the parameter documentation is not listed in the same order as the element’s parameters.
How to Fix Violations
/// <summary>
/// Joins a first name and a last name together into a single string.
/// </summary>
/// <param name="firstName">The first name to join.</param>
/// <param name="lastName">The last name to join.</param>
/// <returns>The joined names.</returns>
public string JoinNames(string firstName, string lastName)
{
return firstName + " " + lastName;
}
© Microsoft Corporation. All Rights Reserved.