Send comments on this topic. |
|
Cause
Rule Description
A violation of this rule occurs if an element contains an empty <returns> tag.
How to Fix Violations
The following example shows a method with a valid documentation header:
/// <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.