Am I right in understanding the .NET XmlIgnoreAttribute, which says:
Instructs the Serialize method of the XmlSerializer not to serialize the public field or public read/write property value.
that:
The property will be deserialized, if present in the XML file?
The property will not be serialized to a new XML file?
The reason I'...
I have two classes, shown below:
[Serializable]
[XmlInclude(typeof(SomeDerived))]
public class SomeBase
{
public string SomeProperty { get; set; }
}
public class SomeDerived : SomeBase
{
[XmlIgnore]
public new string SomeProperty { get; set; }
}
When I serialize and instance of SomeDerived I don't expect to see a value fo...
I want to ignore all elements of Dictionary while serializing as those members cause an exception
example class:
public class TestClass{
public string StringTest { get; set; }
public int IntTest { get; set; }
public Dictionary<int, string> someDictionary { get; set; }
}
What i tried(unsuccessfull)
XmlAttributeOverrides x...