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