You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a class i want to (de)serialize has an IEnumerable<T> property with default value set to some List, after deserialization, such property will have both items set by default and deserialized.
If a class i want to (de)serialize has an
IEnumerable<T>
property with default value set to some List, after deserialization, such property will have both items set by default and deserialized.using a type
TestClass
:the following fails
as
serialized.SomeSequence
is now equal tonew List<string>{"test", "test"}
.However, if the default value is set to an array (
new string[]
) this does not occur.The text was updated successfully, but these errors were encountered: