X hits on this document

1380 views

0 shares

0 downloads

0 comments

353 / 396

C# LANGUAGE SPECIFICATION

/// <summary>This method changes the point's location to ///the given coordinates.</summary> /// <param name="xor">the new x-coordinate.</param> /// <param name="yor">the new y-coordinate.</param> public void Move(int xor, int yor) { X = xor; Y = yor; }

A.2.9

<paramref>

This tag is used to indicate that a word is a parameter. The documentation file can be processed to format this parameter in some distinct way.

Syntax:

<paramref name="name"/>

where

name

The name of the parameter.

Example:

/// <summary>This constructor initializes the new Point to ///(<paramref name="xor"/>,<paramref name="yor"/>).</summary> /// <param name="xor">the new Point's x-coordinate.</param> /// <param name="yor">the new Point's y-coordinate.</param>

public Point(int xor, int yor) { X = xor; Y = yor; }

A.2.10

<permission>

This tag allows the security accessibility of a member to be documented.

Syntax:

<permission cref="member">description</permission>

where

cref="member"

The name of a member. The documentation generator checks that the given code element exists and translates member to the canonical element name in the documentation file.

description

A description of the access to the member.

Example:

/// <permission cref="System.Security.PermissionSet">Everyone can /// access this method.</permission>

public static void Test() { // ... }

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

Document info
Document views1380
Page views1380
Page last viewedSun Jan 22 18:47:22 UTC 2017
Pages396
Paragraphs9401
Words133190

Comments