Build the serialization context through an app.config file. The config
file would support multiple sections for different scenarios. The name of
the section to use to build the context can be specified when constructing
the serializer. If no config is specified, then use a default config.
Would like to allow for inheriting from other sections so that you can
define one default and then create other ones that only modify a few elements.
Need a way to specify the base context so that the serializer has
everything it needs to function in the event there is no config file or
default section.
See attached file for an example.
Modify the Serializer factory method as follows:
Add another method:
public static Serializer GetSerializer(Type t, string configSection);
The existing method with only the type parameter will call the new one with
"JsonExSerializer".
Also maybe allow it to be controlled by type. Example:
<SerializerSection type="MyClass, MyAssembly">
...
</SerializerSection>
Then a call to Serializer.GetSerializer(typeof(MyClass)) would find the
SerializerSection and use that.
Original issue reported on code.google.com by elliott....@gmail.com on 1 Aug 2007 at 8:21
Original issue reported on code.google.com by
elliott....@gmail.com
on 1 Aug 2007 at 8:21Attachments: