Reputation: 7026
In C# I know XML deserializing needs public default constructor. But why deserializing process needs a public constructor?
Upvotes: 1
Views: 74
Reputation: 101701
Because XmlSerializer
uses that constructor to initialize your class and then set the properties.
Upvotes: 0