Multiple choice technology programming languages

From the xml comments in the files in an assembly which compiler switch creates an xml file ?

  1. /text

  2. /doc

  3. /xml

  4. /help

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

The C# compiler switch /doc extracts XML documentation comments (///) from source code and generates an XML documentation file. Options /text, /xml, and /help are not valid compiler switches for this purpose. The /doc switch is commonly used for generating API documentation.

AI explanation

The /doc compiler switch (used with C#/csc) tells the compiler to process XML documentation comments in the source and generate a separate XML file summarizing them. /text and /xml are not real compiler switches for this purpose, and /help just displays usage information.