Hi guys,
I have been using the GeoSerializer class to serialize the state of an existing map in our application. It seems to be working very well serializing and deserializing shapefiles and Sql Server layers using classes we've written that inherit from ShapeFileFeatureLayer and MsSql2008FeatureLayer. However I am having a problem when I try to serialize a collection of our classes that are stored in a collection that derives from type KeyedCollection<TKey, TItem>.
The collection is of type NamedViewCollection and stores objects of type NamedView, which are different extents on the map. Looking at the xml it seems to serialize just fine. When attempting to deserialize no exception is thrown but the collection is empty instead of containing its NamedView objects.
I have attached a sample project so you can easily see my problem.
Thanks!
Steve
SerializationExample.zip (46 KB)