标签:style blog io color ar 使用 sp div on
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WpfApplication1.Demo { /// <summary> /// 人员实体类 /// </summary> public class Person { #region Fields /// <summary> /// 人员名称 /// </summary> private string name; /// <summary> /// 人员年龄 /// </summary> private int age; /// <summary> /// 人员性别,只有内部使用 /// </summary> private string sex; #endregion #region Properties /// <summary> /// 人员名称,内部外部都使用 /// </summary> public string Name { get { return name; } set { name = value; } } /// <summary> /// 人员年龄 /// </summary> public int Age { get { return age; } set { age = value; } } /// <summary> /// 人员地址,只有外部使用 /// </summary> public string Address { get; set; } #endregion #region .ctor /// <summary> /// 构造 /// </summary> public Person() { } /// <summary> /// 构造 /// </summary> /// <param name="sex">人员性别</param> public Person(string sex) { } /// <summary> /// 构造 /// </summary> /// <param name="name">人员名称</param> /// <param name="age">人员年龄</param> public Person(string name, int age) { } #endregion #region Private Method /// <summary> /// 计算输入参数的和 /// </summary> /// <param name="x">输入参数x</param> /// <param name="y">输入参数y</param> /// <returns>入参的和</returns> private int Calc(int x, int y) { return x + y; } #endregion #region Public Method /// <summary> /// 人员行走的方法 /// </summary> public void Work() { } #endregion } }
标签:style blog io color ar 使用 sp div on
原文地址:http://www.cnblogs.com/xiepengtest/p/4091925.html