[原]简述Field,Attribute,Property的区别

您要是关注我这个,说明您是行内人,那我就开门见山了,用代码来诠释吧 
//Field
protected string _Version;
//Attribute
[XmlElement("Version")]
//Property
public string Version
{
  
set { _Version = value; }
  
get { return _Version; }
}

Keywords:Field Attribute Property
posted @ 2008-01-25 10:18  Kenny田  阅读(1094)  评论(4编辑  收藏  举报