发一份微软官方的代码注释示例
2006-09-07 10:04
435 查看
下面的示例列出一个 Point 类的源代码注释:
namespace Graphics
...{
/**//// <summary>Class <c>Point</c> models a point in a two-dimensional plane.
/// </summary>
public class Point
...{
/**//// <summary>Instance variable <c>x</c> represents the point's
/// x-coordinate.</summary>
private int x;
/**//// <summary>Instance variable <c>y</c> represents the point's
/// y-coordinate.</summary>
private int y;
/**//// <value>Property <c>X</c> represents the point's x-coordinate.</value>
public int X
...{
get ...{ return x; }
set ...{ x = value; }
}
/**//// <value>Property <c>Y</c> represents the point's y-coordinate.</value>
public int Y
...{
get ...{ return y; }
set ...{ y = value; }
}
/**//// <summary>This constructor initializes the new Point to
/// (0,0).</summary>
public Point() : this(0,0) ...{}
/**//// <summary>This constructor initializes the new Point to
/// (<paramref name="xor"/>,<paramref name="yor"/>).</summary>
/// <param><c>xor</c> is the new Point's x-coordinate.</param>
/// <param><c>yor</c> is the new Point's y-coordinate.</param>
public Point(int xor, int yor) ...{
X = xor;
Y = yor;
}
/**//// <summary>This method changes the point's location to
/// the given coordinates.</summary>
/// <param><c>xor</c> is the new x-coordinate.</param>
/// <param><c>yor</c> is the new y-coordinate.</param>
/// <see cref="Translate"/>
public void Move(int xor, int yor) ...{
X = xor;
Y = yor;
}
出自--<<C#语言规范1.2版>>
namespace Graphics
...{
/**//// <summary>Class <c>Point</c> models a point in a two-dimensional plane.
/// </summary>
public class Point
...{
/**//// <summary>Instance variable <c>x</c> represents the point's
/// x-coordinate.</summary>
private int x;
/**//// <summary>Instance variable <c>y</c> represents the point's
/// y-coordinate.</summary>
private int y;
/**//// <value>Property <c>X</c> represents the point's x-coordinate.</value>
public int X
...{
get ...{ return x; }
set ...{ x = value; }
}
/**//// <value>Property <c>Y</c> represents the point's y-coordinate.</value>
public int Y
...{
get ...{ return y; }
set ...{ y = value; }
}
/**//// <summary>This constructor initializes the new Point to
/// (0,0).</summary>
public Point() : this(0,0) ...{}
/**//// <summary>This constructor initializes the new Point to
/// (<paramref name="xor"/>,<paramref name="yor"/>).</summary>
/// <param><c>xor</c> is the new Point's x-coordinate.</param>
/// <param><c>yor</c> is the new Point's y-coordinate.</param>
public Point(int xor, int yor) ...{
X = xor;
Y = yor;
}
/**//// <summary>This method changes the point's location to
/// the given coordinates.</summary>
/// <param><c>xor</c> is the new x-coordinate.</param>
/// <param><c>yor</c> is the new y-coordinate.</param>
/// <see cref="Translate"/>
public void Move(int xor, int yor) ...{
X = xor;
Y = yor;
}
出自--<<C#语言规范1.2版>>
相关文章推荐
- .NET 开发者必备 - 微软官方代码示例下载
- 微软官方的.net开发人员代码示例
- tensorflow示例代码注释2
- JPush Java SDK 示例代码与简要注释
- 微软官方的SQLHelper类(含完整中文注释)
- 微软IOC容器Unity简单代码示例1
- 微软一站式示例代码库 6月再次更新14个新示例代码
- 微软的 PHP+IIS+WinServer 开发培训资料/示例代码
- 微软一站式示例代码库
- ASP.Net 2.0 窗体身份验证机制-转+自己代码注释示例与更详细的说明(网上转)
- PowerDesigner 12.5 开启注释列 将Comment(注释)及Name(名称)内容互相COPY的VBS代码 根据名称生成注释(完整示例)
- [转]微软代码示例:ASP.NET 2.0 三层架构应用程序教程系列
- 新版微软一站式示例代码库发布 - 绑定第三版示例代码浏览器
- 微软一站式示例代码浏览器第三版发布
- 一步一步调通Openfire3.10.2+smack4.1.4官方示例代码
- Getting the System Version(微软官方代码)
- Direct2D (21) : 微软官方关于路径的示例
- Java语言基础(关键字、标识符、注释、常量与变量、进制、数据类型、类型转换、代码示例)
- ado.net 分布式事务处理示例,及微软官方示例
- TensorFlow mnist多层卷积网络官方示例完整代码