Required attributes in XML serialization
Posted
by darja
on Stack Overflow
See other posts from Stack Overflow
or by darja
Published on 2010-05-24T02:22:38Z
Indexed on
2010/05/24
2:31 UTC
Read the original article
Hit count: 270
.NET
|xml-serialization
For example I have class to serialize
[Serializable]
class Person
{
[XmlAttribute("name")]
string Name {get;set;}
}
I need to make Name attribute required. How to do this in .NET?
© Stack Overflow or respective owner