In C# I know XML deserializing needs public default constructor. But why deserializing process needs a public constructor?
Asked
Active
Viewed 62 times
1
-
See [this KB article](http://support.microsoft.com/kb/330592). – David Schwartz Jul 31 '14 at 10:22
2 Answers
0
Because XmlSerializer
uses that constructor to initialize your class and then set the properties.

Selman Genç
- 100,147
- 13
- 119
- 184