On 22 Mag, 13:27, Roman Wagner <roman.wag...@gmail.comwrote:
[Serializable()]
public class MyClass
{
private string _Description;
private object _Value;
public MyClass() {}
public string Description
{
get { return _Description; }
set { _Description = value; }
}
public string Value
{
get { return _Value; }
set { _Value = value; }
}
I don't think the problem can be solved using properties. As i said if
i specify the type of every fields it works. Of course I used the
attribute [Serializable], I 've just forgotten to write it in the
example.
[Serilizable]
public class MyClass
{
[XmlAttribute("Description")]
public string description;
[XmlAttribute("Value")]
public object Value;
}