I have a class that I would like to create a simple example on how to use. However, when I use the tag on the class declaration, the example does not appear in the Sandcastle output. It works fine for the object's members but not for the class itself. Can sandcastle handle this?
An example of what I would like to do would be.
MSDN TcpClient Documentation
This has an example on how the class would be used. How can I include such a thing for my class?
This is would I would like to do:
/// <summary> My example class </summary>
/// <example>
/// <code>
/// // Example code on how to use the class
/// </code>
/// </example>
public class MyClass
{
public string MyString {get;set;}
}
For Sandcastle, Custom tags can be created by modifying the main_sandcastle.xslt file with your own tag transform definitions. Files you would be interested in are :
transforms/main_sandcastle.xslt content/shared_content.xml
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