Multiple choice technology programming languages

Which compiler switch creates an xml file from the xml comments in the files in an assembly?

  1. /text

  2. /doc

  3. /xml

  4. /help

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The /doc compiler switch in C# instructs the compiler to generate an XML documentation file containing the XML comments (///) from your source code. This XML output can be used with tools like Sandcastle to create API documentation. The /text and /xml switches don't exist for this purpose.