private string _Name;
public string Name
{
get
{
return _Name;
}
set
{
_Name = value;
}
}
private NameValueCollection _Attributes;
public NameValueCollection Attributes
{
get
{
return _Attributes;
}
set
{
_Attributes = value;
}
}
public Element(string name)
{
this.Name = name;
Attributes = new NameValueCollection();
}
Name用来接收传来的值,我想给Attributes赋值为Name,请问如何实现?