This project has moved and is read-only. For the latest updates, please go here.

suggestion for TypeNameHandling.Custom

Jan 3, 2013 at 5:03 PM

I am using TypeNameHandling.All polymorphic serialization, but would really like to be able to choose between None or All for certain types - particularly object[], Hashtable and IDictionary<,> types that can be mapped very nicely to javascript [] and { }, as 

  $type: "System.String[]",

  $values: [ ... ]

is rather clunky to work with. Is there some mechanism I can use to do this already (there usually is!) but if not, can I suggest some registry for mapping Types to TypeNameHandling settings or something.