adjust name
[mcs.git] / tools / monodoc / Test / man-test4.html
blobbc3d3330498207c406bdbeed010de9f762395330
11 <table width="100%" bgcolor="#b0c4da"><tr colspan="2"><td>Manual Pages</td></tr>
12 <tr><td><h3>mdoc(5)</h3></td><td align="right"></td></tr></table>
13 <h2>NAME</h2><blockquote>
14 mdoc - Mono Documentation XML Format
15 </blockquote><h2>DESCRIPTION</h2><blockquote>
16 The assorted Mono documentation programs generate or manipulate XML files
17 following the mono documentation schema:
18 <dl><dt>
19 <i>mdoc update</i></dt><dd>
20 Creates or updates mono documentation XML for a set of assemblies.
21 </dd><dt>
22 <i>mdoc validate</i></dt><dd>
23 Validates the mono documentation XML against the mono documentation XML
24 schema.
25 </dd><dt>
26 <i>mdoc assemble</i></dt><dd>
27 Converts the mono documentation XML within a directory structure into a set
28 of files for use with <b>monodoc</b>(1).
29 </dd><dt>
30 <i>mdoc export-html</i></dt><dd>
31 Converts the mono documentation XML within a directory structure into a set
32 of HTML files that can be viewed with a web browser.
33 </dd></dl><p>
34 All of these tools (and more) use the common XML schema described in this man
35 page.
36 </p></blockquote><h2>FILE/DIRECTORY STRUCTURE</h2><blockquote>
37 There are three sets of Mono documentation XML files:
38 <dl><dt>
39 <b>*</b></dt><dd>
40 <b>index.xml:</b>
41 contains a list of all assemblies within the containing directory, and all
42 types and namespaces within those assemblies.
43 </dd><dt>
44 <b>*</b></dt><dd>
45 <b>ns-*.xml:</b>
46 There is one ns-*.xml file for each namespace within the assembly; these
47 files are siblings to
48 <i>index.xml</i>
50 <p>
51 Examples of
52 <i>ns-*.xml</i>
53 files include: <i>ns-System.xml</i>, <i>ns-System.Collections.xml</i>, and
54 <i>ns-.xml</i> (for the root namespace, though it is recommended to NOT place
55 types into the root namespace, as <b>monodoc</b>(1) doesn't display them).
56 </p><p>
57 The
58 <i>ns-*.xml</i>
59 files contain per-namespace documentation.
60 </p></dd><dt>
61 <b>*</b></dt><dd>
62 <b>NamespaceName/TypeName.xml:</b>
63 These files are within a dotted
64 <i>NamespaceName</i>
65 directory, and
66 <i>TypeName</i>
67 is the name of the type.
68 <p>
69 Examples include:
70 <i>RootType.xml</i>
71 (if the type has no namespace),
72 <i>System/String.xml</i>,
73 <i>System.Collections/IEnumerable.xml</i>, and
74 <i>System.Collections.Generic/List`1+Enumerator.xml</i>
75 (the
76 <i>`1</i>
77 is the number of generic type parameters the type accepts, and everything
78 after the
79 <i>+</i>
80 is a nested type).
81 </p></dd></dl><p>
82 Thus, typical directory contents would resemble:
84 </p><pre>
86 index.xml
87 ns-System.xml
88 ns-System.Collections.Generic.xml
89 System/String.xml
90 System.Collections.Generic/List`1.xml
91 </pre>
92 </blockquote><h2>DOCUMENTATION FORMAT</h2><blockquote>
93 <h3><b>index.xml File Format</b></h3>
94 <p>
95 The
96 <i>index.xml</i>
97 file contains a list of the assemblies nested under the directory containing
98 <i>index.xml</i>
99 and all namespaces and types within those assemblies. It looks something like
100 this:
102 </p><pre>
104 &lt;Overview&gt;
105 &lt;Assemblies&gt;
106 &lt;Assembly Name="mscorlib" Version="2.0.0.0" /&gt;
107 &lt;!-- other &lt;Assembly/&gt; elements... --&gt;
108 &lt;/Assemblies&gt;
109 &lt;Remarks&gt;To be added.&lt;/Remarks&gt;
110 &lt;Copyright&gt;To be added.&lt;/Copyright&gt;
111 &lt;Types&gt;
112 &lt;Namespace Name="System"&gt;
113 &lt;Type Name="String" /&gt;
114 &lt;!-- Other &lt;Type/&gt; elements --&gt;
115 &lt;/Namespace&gt;
116 &lt;Namespace Name="System.Collections.Generic"&gt;
117 &lt;Type Name="List`1" DisplayName="List&amp;lt;T&amp;gt;" /&gt;
118 &lt;!-- Other &lt;Type/&gt; elements --&gt;
119 &lt;/Namespace&gt;
120 &lt;!-- other &lt;Namespace/&gt; elements --&gt;
121 &lt;/Types&gt;
122 &lt;Title&gt;DocTest&lt;/Title&gt;
123 &lt;/Overview&gt;
124 </pre>
126 Most of this is maintained automatically, in particular the
127 <i>/Overview/Assemblies</i>
129 <i>/Overview/Types</i>
130 elements.
132 The
133 <i>//Namespace/@Name</i>
134 attribute corresponds to a directory which contains files named
135 <i>//Type/@Name</i>.xml, while the <i>//Type/@DisplayName</i> attribute contains
136 a C# type name (if <i>//Type/@DisplayName</i> isn't found, then
137 <i>//Type/@Name</i> is used as the display name). There should also be a
138 <i>ns-[//Namespace/@Name].xml</i> file.
139 </p><p>
140 There are three elements of interest to authors:
141 <i>/Overview/Remarks</i>, <i>/Overview/Copyright</i>, and
142 <i>/Overview/Title</i>, which contain assembly-level documentation.
143 These elements can contain any of the following XML elements (documented in
144 the <b>Documentation XML Elements</b> section):
145 <i>block</i>,
146 <i>code</i>,
147 <i>example</i>,
148 <i>list</i>,
149 <i>para</i>,
150 <i>paramref</i>,
151 <i>typeparamref</i>,
152 <i>see</i>, and
153 <i>ul</i>.
154 <h3><b>ns-*.xml File Format</b></h3>
155 The <i>ns-*.xml</i> files contain namespace documentation:
157 </p><pre>
159 &lt;Namespace Name="System"&gt;
160 &lt;Docs&gt;
161 &lt;summary&gt;To be added.&lt;/summary&gt;
162 &lt;remarks&gt;To be added.&lt;/remarks&gt;
163 &lt;/Docs&gt;
164 &lt;/Namespace&gt;
165 </pre>
167 The <i>/Namespace/Docs/summary</i> and <i>/Namespace/Docs/remarks</i> elements
168 should contain namespace documentation.
170 The <i>remarks</i> and <i>summary</i> elements are documented in the
171 <b>Documentation XML Elements</b> section.
172 <h3><b>NamespaceName/TypeName.xml File Format</b></h3>
174 <i>mono documentation format</i>
175 is similar to the Ecma documentation format, as described
176 in ECMA-335 3rd Edition, Partition IV, Chapter 7.
177 The principal difference from the ECMA format is that each type gets its own
178 file, within a directory identical to the namespace of the type. There is a
179 lot of information that is maintained automatically by <b>mdoc</b>(1);
180 Most of the information within the documentation should
181 <i>not</i>
182 be edited. This includes the type name (<i>/Type/@FullName</i>), implemented
183 interfaces (<i>/Type/Interfaces</i>), member information
184 (<i>/Type/Members/Member/@MemberName</i>,
185 <i>/Type/Members/Member/MemberSignature</i>,
186 <i>/Type/Members/Member/MemberType</i>,
187 <i>/Type/Members/Member/Parameters</i>, etc.).
189 </p><pre>
191 &lt;Type Name="DocAttribute" FullName="Mono.DocTest.DocAttribute"&gt;
192 &lt;TypeSignature Language="C#" Value="public class DocAttribute : Attribute" /&gt;
193 &lt;AssemblyInfo&gt;
194 &lt;AssemblyName&gt;DocTest&lt;/AssemblyName&gt;
195 &lt;AssemblyVersion&gt;0.0.0.0&lt;/AssemblyVersion&gt;
196 &lt;/AssemblyInfo&gt;
197 &lt;Base&gt;
198 &lt;BaseTypeName&gt;System.Attribute&lt;/BaseTypeName&gt;
199 &lt;/Base&gt;
200 &lt;Interfaces /&gt;
201 &lt;Attributes&gt;
202 &lt;Attribute&gt;
203 &lt;AttributeName&gt;System.AttributeUsage(System.AttributeTargets.All)&lt;/AttributeName&gt;
204 &lt;/Attribute&gt;
205 &lt;/Attributes&gt;
206 &lt;Docs&gt;
207 &lt;summary&gt;To be added.&lt;/summary&gt;
208 &lt;remarks&gt;To be added.&lt;/remarks&gt;
209 &lt;/Docs&gt;
210 &lt;Members&gt;
211 &lt;Member MemberName=".ctor"&gt;
212 &lt;MemberSignature Language="C#" Value="public DocAttribute (string docs);" /&gt;
213 &lt;MemberType&gt;Constructor&lt;/MemberType&gt;
214 &lt;AssemblyInfo&gt;
215 &lt;AssemblyVersion&gt;0.0.0.0&lt;/AssemblyVersion&gt;
216 &lt;/AssemblyInfo&gt;
217 &lt;Parameters&gt;
218 &lt;Parameter Name="docs" Type="System.String" /&gt;
219 &lt;/Parameters&gt;
220 &lt;Docs&gt;
221 &lt;param name="docs"&gt;To be added.&lt;/param&gt;
222 &lt;summary&gt;To be added.&lt;/summary&gt;
223 &lt;remarks&gt;To be added.&lt;/remarks&gt;
224 &lt;/Docs&gt;
225 &lt;/Member&gt;
226 &lt;/Members&gt;
227 &lt;/Type&gt;
228 </pre>
230 The only elements that normally need to be edited are children of the
231 <i>//Docs</i> elements, which usually contain the text
232 <i>To be added.</i>
233 The <i>/Type/Docs</i> element contains type-level documentation, while the
234 <i>/Type/Members/Member/Docs</i> element contains per-member documentation.
236 The <i>//Docs</i> elements can contain the following elements:
237 <i>altcompliant</i>,
238 <i>altmember</i>,
239 <i>example</i>,
240 <i>exception</i>,
241 <i>param</i>,
242 <i>permission</i>,
243 <i>remarks</i>,
244 <i>returns</i>,
245 <i>since</i>,
246 <i>summary</i>,
247 <i>threadsafe</i>,
248 <i>typeparam</i>, and
249 <i>value</i>.
250 </p><p>
251 Nested types are not members; they are types, and are documented in their own
252 file. Consequently, the <i>NamespaceName/TypeName.xml</i> files are not
253 recursive; you do not store a <i>&lt;Type/&gt;</i> element within a <i>&lt;Type/&gt;</i>
254 element.
255 <h3><b>Documentation XML Elements</b></h3>
256 The contents of the <i>Docs</i> element is <i>identical</i>
257 in semantics and structure to the inline C# documentation format, consisting
258 of these elements (listed in ECMA-334 3rd Edition, Annex E, Section 2). The
259 following are used within the element descriptions:
260 </p><dl><dt>
261 <i>CREF</i></dt><dd>
262 Refers to a class (or member) reference, and is a string in the format
263 described below in the <b>CREF FORMAT</b> section.
264 </dd><dt>
265 <i>TEXT</i></dt><dd>
266 Non-XML text, and XML should not be nested.
267 <i></i>
268 </dd><dt>
269 <i>XML</i></dt><dd>
270 Only XML elements should be nested (which indirectly may contain text), but
271 non-whitespace text should not be an immediate child node.
272 </dd><dt>
273 <i>XML_TEXT</i></dt><dd>
274 Free-form text and XML, so that other XML elements may be nested.
275 </dd></dl><p>
276 The following elements are used in documentation:
277 </p><dl><dt>
278 <i>&lt;altmember cref="CREF" /&gt;</i></dt><dd>
279 <i>&lt;altmember/&gt;</i>
280 is a top-level element, and should be nested directly under the
281 <i>&lt;Docs/&gt;</i>
282 element.
284 Allows an entry to be generated for the <i>See Also</i> section. Use
285 <i>&lt;see/&gt;</i> to specify a link from within text.
287 </p><pre>
289 &lt;altmember cref="P:System.Exception.Message" /&gt;
290 </pre>
291 </dd><dt>
292 <i>&lt;block subset="SUBSET" type="TYPE"&gt;XML_TEXT&lt;/block&gt;</i></dt><dd>
293 Create a block of text, similar in concept to a paragraph, but is used to
294 create divisions within the text. To some extent, a &lt;block/&gt; is equivalent to
295 the HTML &lt;h2/&gt; tag.
297 <i>SUBSET</i>
298 should always be the value <i>"none"</i>.
299 </p><p>
300 <i>TYPE</i>
301 specifies the heading and formatting to use. Recognized types are:
302 </p><p>
303 <i>behaviors</i>
304 Creates a section with the heading <i>Operation</i>.
305 </p><p>
306 <i>note</i>
307 Creates a section with the heading <i>Note:</i>.
308 </p><p>
309 <i>overrides</i>
310 Creates a section with the heading <i>Note to Inheritors</i>.
311 </p><p>
312 <i>usage</i>
313 Creates a section with the heading <i>Usage</i>.
314 </p><p>
315 The <i>block</i> element can contain the following elements:
316 <i>block</i>,
317 <i>c</i>,
318 <i>code</i>,
319 <i>list</i>,
320 <i>para</i>,
321 <i>paramref</i>,
322 <i>see</i>,
323 <i>subscript</i>,
324 <i>sup</i>, and
325 <i>typeparamref</i>.
326 </p></dd><dt>
327 <i>&lt;c&gt;XML_TEXT&lt;/c&gt;</i></dt><dd>
328 Set text in a code-like font (similar to the HTML &lt;tt/&gt; element).
330 The <i>c</i> element can contain the following elements:
331 <i>code</i>,
332 <i>para</i>,
333 <i>paramref</i>,
334 <i>see</i>, and
335 <i>typeparamref</i>.
336 </p></dd><dt>
337 <i>&lt;code lang="LANGUAGE"&gt;TEXT&lt;/code&gt;</i></dt><dd>
338 Display multiple lines of text in a code-like font (similar to the HTML &lt;pre/&gt;
339 element).
340 <i>LANGUAGE</i>
341 is the language this code block is for. For example, if <i>LANGUAGE</i> is
342 <b>C#</b>, then <i>TEXT</i> will get syntax highlighting for the C# language
343 within the Mono Documentation Browser.
344 </dd><dt>
345 <i>&lt;example&gt;XML_TEXT&lt;/example&gt;</i></dt><dd>
346 Indicates an example that should be displayed specially. For example:
348 <pre>
350 &lt;example&gt;
351 &lt;para&gt;An introductory paragraph.&lt;/para&gt;
352 &lt;code lang="C#"&gt;
353 class Example {
354 public static void Main ()
356 System.Console.WriteLine ("Hello, World!");
359 &lt;/code&gt;
360 &lt;/example&gt;
361 </pre>
363 The <i>example</i> element can contain the following elements:
364 <i>c</i>,
365 <i>code</i>,
366 <i>list</i>,
367 <i>para</i>, and
368 <i>see</i>.
369 </dd><dt>
370 <i>&lt;exception cref="CREF"&gt;XML_TEXT&lt;/exception&gt;</i></dt><dd>
371 Identifies an exception that can be thrown by the documented member.
373 <i>&lt;exception/&gt;</i>
374 is a top-level element, and should be nested directly under the
375 <i>&lt;Docs/&gt;</i>
376 element.
377 </p><p>
378 <i>CREF</i>
379 is the exception type that is thrown, while
380 <i>XML_TEXT</i>
381 contains the circumstances that would cause
382 <i>CREF</i>
383 to be thrown.
385 </p><pre>
387 &lt;exception cref="T:System.ArgumentNullException"&gt;
388 &lt;paramref name="foo" /&gt; was &lt;see langword="null" /&gt;.
389 &lt;/exception&gt;
390 </pre>
392 The <i>exception</i> element can contain the following elements:
393 <i>block</i>,
394 <i>para</i>,
395 <i>paramref</i>,
396 <i>see</i>, and
397 <i>typeparamref</i>.
398 </dd><dt>
399 <i>&lt;list&gt;XML&lt;/list&gt;</i></dt><dd>
400 Create a list or table of items.
401 <i>&lt;list/&gt;</i>
402 makes use of nested <i>&lt;item&gt;XML&lt;/item&gt;</i>, <i>&lt;listheader&gt;XML&lt;/listheader&gt;</i>,
403 <i>&lt;term&gt;XML_TEXT&lt;/term&gt;</i>, and <i>&lt;description&gt;XML_TEXT&lt;/description&gt;</i>
404 elements.
406 <i>Lists</i> have the syntax:
408 </p><pre>
410 &lt;list type="bullet"&gt; &lt;!-- or type="number" --&gt;
411 &lt;item&gt;&lt;term&gt;Bullet 1&lt;/term&gt;&lt;/item&gt;
412 &lt;item&gt;&lt;term&gt;Bullet 2&lt;/term&gt;&lt;/item&gt;
413 &lt;item&gt;&lt;term&gt;Bullet 3&lt;/term&gt;&lt;/item&gt;
414 &lt;/list&gt;
415 </pre>
417 <i>Tables</i>
418 have the syntax:
420 </p><pre>
422 &lt;list type="table"&gt;
423 &lt;listheader&gt; &lt;!-- listheader bolds this row --&gt;
424 &lt;term&gt;Column 1&lt;/term&gt;
425 &lt;description&gt;Column 2&lt;/description&gt;
426 &lt;description&gt;Column 3&lt;/description&gt;
427 &lt;/listheader&gt;
428 &lt;item&gt;
429 &lt;term&gt;Item 1-A&lt;/term&gt;
430 &lt;description&gt;Item 1-B&lt;/description&gt;
431 &lt;description&gt;Item 1-C&lt;/description&gt;
432 &lt;/item&gt;
433 &lt;item&gt;
434 &lt;term&gt;Item 2-A&lt;/term&gt;
435 &lt;description&gt;Item 2-B&lt;/description&gt;
436 &lt;description&gt;Item 2-C&lt;/description&gt;
437 &lt;/item&gt;
438 &lt;/list&gt;
439 </pre>
441 The <i>item</i> and <i>description</i> elements can each contain text and
442 the following elements:
443 <i>block</i>,
444 <i>c</i>,
445 <i>para</i>,
446 <i>paramref</i>,
447 <i>see</i>,
448 <i>sup</i>, and
449 <i>typeparamref</i>.
450 </dd><dt>
451 <i>&lt;para&gt;XML_TEXT&lt;/para&gt;</i></dt><dd>
452 Insert a paragraph of <i>XML_TEXT</i>.
453 For example,
455 <pre>
457 &lt;para&gt;
458 This is a paragraph of text.
459 &lt;/para&gt;
460 </pre>
462 The <i>para</i> element can contain the following elements:
463 <i>block</i>,
464 <i>c</i>,
465 <i>example</i>,
466 <i>link</i>,
467 <i>list</i>,
468 <i>onequarter</i>,
469 <i>paramref</i>,
470 <i>see</i>,
471 <i>sub</i>,
472 <i>sup</i>,
473 <i>typeparamref</i>, and
474 <i>ul</i>.
475 </dd><dt>
476 <i>&lt;param name="NAME"&gt;XML_TEXT&lt;/param&gt;</i></dt><dd>
477 <i>&lt;param/&gt;</i>
478 is a top-level element, and should be nested directly under the
479 <i>&lt;Docs/&gt;</i>
480 element.
482 Describes the parameter <i>NAME</i> of the current constructor, method, or
483 property:
485 </p><pre>
487 &lt;param name="count"&gt;
488 A &lt;see cref="T:System.Int32" /&gt; containing the number
489 of widgets to process.
490 &lt;/param&gt;
491 </pre>
494 The <i>param</i> element can contain the following elements:
495 <i>block</i>,
496 <i>c</i>,
497 <i>example</i>,
498 <i>para</i>,
499 <i>paramref</i>,
500 <i>see</i>, and
501 <i>typeparamref</i>.
502 </dd><dt>
503 <i>&lt;paramref name="NAME" /&gt;</i></dt><dd>
504 Indicates that <i>NAME</i> is a parameter.
506 This usually renders <i>NAME</i> as italic text, so it is frequently
507 (ab)used as an equivalent to the HTML &lt;i/&gt; element. See the
508 <i>&lt;exception/&gt;</i> documentation (above) for an example.
509 </p><p>
510 </p></dd><dt>
511 <i>&lt;permission cref="CREF"&gt;XML_TEXT&lt;/permission&gt;</i></dt><dd>
512 Documents the security accessibility requirements of the current member.
514 <i>&lt;permission/&gt;</i>
515 is a top-level element, and should be nested directly under the
516 <i>&lt;Docs/&gt;</i>
517 element.
518 </p><p>
519 <i>CREF</i> is a type reference to the security permission required, while
520 <i>XML_TEXT</i> is a description of why the permission is required.
522 </p><pre>
524 &lt;permission cref="T:System.Security.Permissions.FileIOPermission"&gt;
525 Requires permission for reading and writing files. See
526 &lt;see cref="F:System.Security.Permissions.FileIOPermissionAccess.Read" /&gt;,
527 &lt;see cref="F:System.Security.Permissions.FileIOPermissionAccess.Write" /&gt;.
528 &lt;/permission&gt;
529 </pre>
531 The <i>permission</i> element can contain the following elements:
532 <i>block</i>,
533 <i>para</i>,
534 <i>paramref</i>,
535 <i>see</i>, and
536 <i>typeparamref</i>.
537 </dd><dt>
538 <i>&lt;remarks&gt;XML_TEXT&lt;/remarks&gt;</i></dt><dd>
539 Contains detailed information about a member.
541 <i>&lt;remarks/&gt;</i>
542 is a top-level element, and should be nested directly under the
543 <i>&lt;Docs/&gt;</i>
544 element.
546 </p><pre>
548 &lt;remarks&gt;
549 Insert detailed information here.
550 &lt;/remarks&gt;
551 </pre>
553 The <i>remarks</i> element can contain the following elements:
554 <i>block</i>,
555 <i>c</i>,
556 <i>code</i>,
557 <i>example</i>,
558 <i>list</i>,
559 <i>para</i>,
560 <i>paramref</i>,
561 <i>see</i>, and
562 <i>typeparamref</i>.
563 </dd><dt>
564 <i>&lt;returns&gt;XML_TEXT&lt;/returns&gt;</i></dt><dd>
566 <i>&lt;returns/&gt;</i>
567 is a top-level element, and should be nested directly under the
568 <i>&lt;Docs/&gt;</i>
569 element.
570 </p><p>
571 Describes the return value of a method:
573 </p><pre>
575 &lt;returns&gt;
576 A &lt;see cref="T:System.Boolean" /&gt; specifying whether
577 or not the process can access
578 &lt;see cref="P:Mono.Unix.UnixFileSystemInfo.FullName" /&gt;.
579 &lt;/returns&gt;
580 </pre>
582 The <i>returns</i> element can contain the following elements:
583 <i>list</i>,
584 <i>para</i>,
585 <i>paramref</i>,
586 <i>see</i>, and
587 <i>typeparamref</i>.
588 </dd><dt>
589 <i>&lt;see cref="CREF" /&gt;</i>, <i>&lt;see langword="LANGWORD" /&gt;</i></dt><dd>
590 Creates a link to the specified member within the current text:
592 <pre>
594 &lt;see cref="M:Some.Namespace.With.Type.Method" /&gt;
595 </pre>
597 or specifies that <i>LANGWORD</i> is a language keyword:
599 <pre>
601 &lt;see langword="null" /&gt;
602 </pre>
604 </dd><dt>
605 <i>&lt;seealso cref="CREF" /&gt;</i></dt><dd>
606 Do not use <i>seealso</i>, use <i>altmember</i>.
607 </dd><dt>
608 <i>&lt;since version="VERSION" /&gt;</i></dt><dd>
610 <i>&lt;since/&gt;</i>
611 is a top-level element, and should be nested directly under the
612 <i>&lt;Docs/&gt;</i> element.
613 </p><p>
614 Permits specification of which version introduced the specified type or
615 member.
617 </p><pre>
619 &lt;since version="Gtk# 2.4" /&gt;
620 </pre>
622 This generally isn't required, as the <i>//AssemblyInfo/AssemblyVersion</i>
623 elements track which assembly versions contain type or member.
624 </dd><dt>
625 <i>&lt;summary&gt;XML_TEXT&lt;/summary&gt;</i></dt><dd>
627 <i>&lt;summary/&gt;</i>
628 is a top-level element, and should be nested directly under the
629 <i>&lt;Docs/&gt;</i>
630 element.
631 </p><p>
632 Provides a (brief!) overview about a type or type member.
633 </p><p>
634 This is usually displayed as part of a class declaration, and should be a
635 reasonably short description of the type/member. Use
636 <i>&lt;remarks/&gt;</i>
637 for more detailed information.
638 </p><p>
639 The <i>summary</i> element can contain the following elements:
640 <i>block</i>,
641 <i>list</i>,
642 <i>para</i>,
643 <i>paramref</i>,
644 <i>see</i>, and
645 <i>typeparamref</i>.
646 </p></dd><dt>
647 <i>&lt;typeparam name="NAME"&gt;XML_TEXT&lt;/typeparam&gt;</i></dt><dd>
648 <i>&lt;typeparam/&gt;</i>
649 is a top-level element, and should be nested directly under the
650 <i>&lt;Docs/&gt;</i>
651 element.
653 This is used to document a type parameter for a generic type or generic method.
654 </p><p>
655 <i>NAME</i>
656 is the name of the type parameter, while
657 <i>XML_TEXT</i>
658 contains a description of the parameter (what it's used for, what restrictions
659 it must meet, etc.).
661 </p><pre>
663 &lt;typeparam name="T"&gt;
664 The type of the underlying collection
665 &lt;/typeparam&gt;
666 </pre>
668 The <i>typeparam</i> element can contain the following elements:
669 <i>block</i>,
670 <i>c</i>,
671 <i>para</i>,
672 <i>paramref</i>,
673 <i>see</i>, and
674 <i>typeparamref</i>.
675 </dd><dt>
676 <i>&lt;typeparamref name="NAME"&gt;</i></dt><dd>
677 Used to indicate that <i>NAME</i> is a type parameter.
678 </dd><dt>
679 <i>&lt;value&gt;XML_TEXT&lt;/value&gt;</i></dt><dd>
680 <i>&lt;value/&gt;</i>
681 is a top-level element, and should be nested directly under the
682 <i>&lt;Docs/&gt;</i>
683 element.
685 Allows a property to be described.
687 </p><pre>
689 &lt;value&gt;
690 A &lt;see cref="T:System.String" /&gt; containing a widget name.
691 &lt;/value&gt;
692 </pre>
694 The <i>value</i> element can contain the following elements:
695 <i>block</i>,
696 <i>c</i>,
697 <i>example</i>,
698 <i>list</i>,
699 <i>para</i>,
700 <i>paramref</i>,
701 <i>see</i>, and
702 <i>typeparamref</i>.
703 </dd></dl><p>
704 </p></blockquote><h2>CREF FORMAT</h2><blockquote>
705 String IDs (<i>CREF</i>s) are used to refer to a type or member of a type.
706 String IDs are documented in ECMA-334 3rd Edition, Annex E.3.1. They consist
707 of a <i>member type prefix</i>, the full type name (namespace + name, separated
708 by <i>.</i>), possibly followed by the member name and other information.
710 Member type prefixes:
711 </p><dl><dt>
712 <i>C:</i></dt><dd>
713 The CREF refers to a constructor. The (optional) parameter list is
714 enclosed in parenthesis and follows the type name:
715 <i>C:System.String(System.Char,System.Int32)</i>.
716 </dd><dt>
717 <i>E:</i></dt><dd>
718 The CREF refers to an event. The event name follows the type name:
719 <i>E:System.AppDomain.AssemblyLoad</i>.
720 </dd><dt>
721 <i>F:</i></dt><dd>
722 The CREF refers to a field. The field name follows the type name:
723 <i>F:System.Runtime.InteropServices.DllImportAttribute.SetLastError</i>.
724 </dd><dt>
725 <i>M:</i></dt><dd>
726 Refers to a constructor or method. Constructors may append
727 <i>.ctor</i>
728 to the type name (instead of using the above
729 <i>C:</i>
730 constructor format), while methods append the method name and an (optional)
731 count of the number of generic parameters. Both constructors and methods
732 may append the method parameter list enclosed in parenthesis.
734 Examples:
735 <i>M:System.Object..ctor</i>,
736 <i>M:System.String..ctor(System.Char[])</i>,
737 <i>M:System.String.Concat(System.Object)</i>,
738 <i>M:System.Array.Sort``1(``0[])</i>,
739 <i>M:System.Collections.Generic.List`1..ctor</i>,
740 <i>M:System.Collections.Generic.List`1.Add(`0)</i>.
741 </p></dd><dt>
742 <i>N:</i></dt><dd>
743 Refers to a namespace, e.g. <i>N:System</i>.
744 </dd><dt>
745 <i>P:</i></dt><dd>
746 Refers to a property. If the property is an indexer or takes parameters,
747 the parameter types are appended to the property name and enclosed with
748 paranthesis:
749 <i>P:System.String.Length</i>,
750 <i>P:System.String.Chars(System.Int32)</i>.
751 </dd><dt>
752 <i>T:</i></dt><dd>
753 The CREF refers to a type, with the number of generic types appended:
754 <i>T:System.String</i>,
755 <i>T:System.Collections.Generic.List`1</i>,
756 <i>T:System.Collections.Generic.List`1.Enumerator</i>.
757 </dd></dl><p>
758 To make matters more interesting, generic types &amp; members have two
759 representations: the "unbound" representation (shown in examples above), in
760 which class names have the count of generic parameters appended to their name.
761 There is also a "bound" representation, in which the binding of generic
762 parameters is listed within '{' and '}' or '&lt;' and '&gt;'.
763 (Use of '&lt;' and '&gt;' is less common, as within an XML document their escaped
764 character entities must instead be used, leading to '&amp;lt;' and '&amp;gt;'.)
765 </p><p>
766 <b>Unbound:</b>
767 </p><dl><dt>
768 <b>*</b></dt><dd>
769 <i>T:System.Collections.Generic.List`1</i>
770 </dd><dt>
771 <b>*</b></dt><dd>
772 <i>T:System.Collections.Generic.Dictionary`2</i>
773 </dd></dl><p>
774 <b>Bound:</b>
775 </p><dl><dt>
776 <b>*</b></dt><dd>
777 <i>T:System.Collections.Generic.List{System.Int32}</i>
778 </dd><dt>
779 <b>*</b></dt><dd>
780 <i>T:System.Collections.Generic.List&lt;System.Int32&gt;</i>
781 </dd><dt>
782 <b>*</b></dt><dd>
783 <i>T:System.Collections.Generic.List&amp;lt;System.Int32&amp;gt;</i>
784 </dd><dt>
785 <b>*</b></dt><dd>
786 <i>T:System.Predicate{System.Action{System.String}}</i>
787 </dd></dl><p>
788 As you can see, bound variants can be arbitrarily complex (just like
789 generics).
790 </p><p>
791 Furthermore, if a generic parameter is bound to the generic parameter of a
792 type or method, the "index" of the type/method's generic parameter is used
793 as the binding, so given
795 </p><pre>
797 class FooType {
798 public static void Foo&lt;T&gt; (System.Predicate&lt;T&gt; predicate)
802 </pre>
804 The CREF for this method is
805 <i>M:FooType.Foo``1(System.Predicate{``0})</i>,
806 <i>``0</i>
807 is the 0th generic parameter index which is bound to
808 <i>System.Predicate&lt;T&gt;</i>.
809 </blockquote><h2>SEE ALSO</h2><blockquote>
810 mdoc(1), monodocer(1)
811 </blockquote><h2>MAILING LISTS</h2><blockquote>
812 <dl><dt>
813 Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.</dt><dd>
814 </dd></dl></blockquote><h2>WEB SITE</h2><blockquote>
815 Visit http://www.mono-project.com for details