xxxxxxxxxx
tag <inheritdoc/> states that a documentation comment must inherit documentation from a base class or implemented interface.
public interface IAnimal
{
/// <summary>
/// The name of the animal.
/// </summary>
string Name { get; set; }
/// <summary>
/// Makes the animal make a sound.
/// </summary>
void MakeSound();
}
public class Cat : IAnimal
{
/// <inheritdoc/>
public string Name { get; set; }
/// <inheritdoc/>
public void MakeSound()
{
Console.WriteLine("Meow!");
}
}