What is the purpose of the PropertySpecified template used to serialize XML?

What is the purpose of the PropertySpecified template used to serialize XML?
What problem is he trying to solve?

+4
source share
1 answer

It tries to solve the problem of what int float etc. cannot be null, so it has no other way to determine if an attribute / element exists in an XML file or not.

This was really only useful in .NET 1.x, since in .NET 2 you can just use Nullable<T> (e.g. int? ).

+2
source

Source: https://habr.com/ru/post/1303634/


All Articles