Full XML Comments

Listings 7.2 and 7.3 contain a full implementation of the concepts presented in this chapter. Both listings contain a full set of XML documentation comments. Remember the /doc command line switch to generate documentation. Compilation instructions are shown in Listing 7.1.

Listing 7.1. Site Manager Make File
csc /target:library /doc:WebSites.xml WebSites.cs
csc /r:WebSites.dll /doc:SiteManager.xml SiteManager.cs
Listing 7.2. WebSites Library with XML Documentation Comments
 1: namespace WebSites 2: { 3: using System; 4: using System.Collections; 5: 6: /// <summary> 7: /// Describes a single web site. 8: /// </summary> 9: /// <remarks>This class has the following members: 10: /// <para>Constructors: 11: /// <list> 12: /// ...

Get C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.