How do I write a class so that property and method descriptions are visible to people referencing the dll in other projects?
[Description("My age in years attribute")]
public int Age
{
get { return 0; }
set { }
}
doesn't work, neither does
/// <summary>
/// My age in years attribute
/// </summary>
public int Age
{
get { return 0; }
set { }
}
In Visual Studio:
Project -> Properties -> Build -> Check "XML Documentation File".
For further details, see XML Comments Let You Build Documentation Directly From Your Visual Studio .NET Source Files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With