icubilla / jsonexserializer

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

Can't Insert CollectionHandlers before the end of the list #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have a strongly typed collection by extended CollectionBase
2. Build a handler for your collection
3. The default handlers contain a handler for IList, which CollectionBase
implements, so your custom handler never gets called.

Probably just need to give full access to the collection and get rid of the
"RegisterCollectionHandler" method.

Barring that, make the RegisterCollectionHandler method insert at the
beginning rather than the end, since you would always want a custom handler
to take precedence over the default ones.

Original issue reported on code.google.com by elliott....@gmail.com on 10 Jul 2008 at 4:04

GoogleCodeExporter commented 9 years ago
Fixed the Register method to Insert at the beginning of the list as well as 
made the
CollectionHandlers collection public.

Original comment by elliott....@gmail.com on 10 Jul 2008 at 4:58

GoogleCodeExporter commented 9 years ago

Original comment by elliott....@gmail.com on 10 Jul 2008 at 5:00

GoogleCodeExporter commented 9 years ago

Original comment by elliott....@gmail.com on 19 Jul 2008 at 4:22