You need custom serialization. Without tag information the default serializer wouldn't know how to deserialize all of your data.
Imagine if both those properties were Strings. Which Element goes with which property?
You need custom serialization. Without tag information the default serializer wouldn't know how to deserialize all of your data.
Imagine if both those properties were Strings. Which Element goes with which property?