What is the purpose of the PropertySpecified pattern used by XML Serialization ?
What problem does it tryto solve ?
What is the purpose of the PropertySpecified pattern used by XML Serialization ? What
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It tries to solve the problem that
intfloatand so on cannot be null, so it has no other way to signal whether the attribute/element exists in the XML file or not.It was really only useful in .NET 1.x, since in .NET 2 you can just use
Nullable<T>(e.g.int?) instead.