tl24 / jsonexserializer

Automatically exported from code.google.com/p/jsonexserializer
1 stars 1 forks source link

A class derived from List<type> is serialised as an List<type> so other class properties are not serialised #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a class MyClass derived from a List<SomeClass>
2. Add properties to MyClass
3. Serialize MyClass

What is the expected output? 
The serialised output should show the members of List<SomeClass> followed by 
the properties of MyClass

What do you see instead?
Only the serialised List<SomeClass> items are seen in the output file

What version of the product are you using? On what operating system?
3.1.1 on Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by bobw...@gmail.com on 1 Mar 2012 at 4:19

GoogleCodeExporter commented 9 years ago
A class can't really be both a collection and a class with properties.  A class 
like this needs to have a converter.

Original comment by elliott....@gmail.com on 24 Jan 2013 at 8:02