public class abc
{
public string b;
public string c;
}
<a>
<b></b>
<c></c>
</a>
and can we explicitly specify "a"
views:
18answers:
1
A:
You can't specify "a". "a" doesn't belong to class "abc" - it belongs to the class that c ontains an instance of class "abc":
public class def
{
[XmlElement("a")]
public abc abc {get;set;}
}
John Saunders
2010-06-26 14:20:02