Page 71      All Pages  All Books
46
Chapter 2 • Introducing C# Programming
csc.exe /out:FirstCSharpProgram.exe FirstCSharpProgram.es / doc:FirstCSharpProgram.xml
Here is the XML that is generated by the compiler.
<?xml version="1.0"?> <doc>
<assembly>
<name>FirstCSharpProgram</name> </assembly> <members>
<member name="T:FirstCSharpProgram.FirstCSharpClass"> <summary> My first C# class. </summary> </member> </members> </doc>
Debugging…
Debugging Console Applications: Cordbg.exe
The .NET Framework SDK includes a command-line debugger that you can use at runtime to debug your applications. A simple example follows:
cordbg FirstCSharpProgram.exe !b FirstCSharpProgram.cs:100
The example starts execution of FirstCSharpProgram.exe and sets a breakpoint at line 100 of the file FirstCSharpProgram.cs. The debugger allows you to set and display the value of variables in your program to aid in debugging your application. You can find more information on cordbg in the .NET Framework SDK documentation.
FirstCSharpProgram uses the <summary> tag, which is recognized by the compiler as a source code documentation tag.You can use many other tags to document other parts of your code, including parameters, return codes, and so

Page 71      All Pages  All Books