Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple language examples in XML Documentation

Is there a way to include examples for multiple languages (C# and Visual Basic, for example) in XML documentation?

I'm using SandCastle to build MSDN-style documentation and would like to include usage examples for a few .NET languages.

like image 524
Ricky Smith Avatar asked May 24 '10 22:05

Ricky Smith


1 Answers

My examples are coded e.g. like this:

    /// <example>
    /// <code source="..\FormControls\FileModelEdit\Form1.cs" region="published help using openDocumentFragment" lang="cs" />
    /// </example>

I could presumably (although I don't) have several of these <code> elements, each with a different lang attribute value.

like image 132
ChrisW Avatar answered Oct 17 '22 15:10

ChrisW