I am using ICollection to serialize array objects. Is there a way to add an
XML attribute inside the collection class?
In the following example I would like to get the Link attribute serializable.
[System.Xml.Serialization.XmlRootAttribute("RJ",Namespace="",
IsNullable=false)]
class MainClass
{
// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("AA")]
public A aobject;
}
class A:ICollection
{
private string _link;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute("Link")]
public string Link
{
get { return _link;}
set { _link = value;}
}
}
Thanks,
regards,
KC