X hits on this document

964 views

0 shares

0 downloads

0 comments

349 / 396

C# LANGUAGE SPECIFICATION

<value>

‎A.2.16

Describe a property

A.2.1

<c>

This tag provides a mechanism to indicate that a fragment of text within a description should be set in a special font such as that used for a block of code. For lines of actual code, use <code> (§‎A.2.2).

Syntax:

<c>text</c>

Example:

/// <remarks>Class <c>Point</c> models a point in a two-dimensional /// plane.</remarks>

public class Point { // ... }

A.2.2

<code>

This tag is used to set one or more lines of source code or program output in some special font. For small code fragments in narrative, use <c> (§‎A.2.1).

Syntax:

<code>source code or program output</code>

Example:

/// <summary>This method changes the point's location by ///the given x- and y-offsets. /// <example>For example: /// <code> ///Point p = new Point(3,5); ///p.Translate(-1,3); /// </code> /// results in <c>p</c>'s having the value (2,8). /// </example> /// </summary>

public void Translate(int xor, int yor) { X += xor; Y += yor; }

A.2.3

<example>

This tag allows example code within a comment, to specify how a method or other library member may be used. Ordinarily, this would also involve use of the tag <code>‎A.2.2) as well.

Syntax:

<example>description</example>

Example:

See <code> (§‎A.2.2) for an example.

336Copyright Microsoft Corporation 1999-2003. All Rights Reserved.

Document info
Document views964
Page views964
Page last viewedThu Dec 08 16:18:20 UTC 2016
Pages396
Paragraphs9401
Words133190

Comments