JavaScriptSerializer Archive

  • When I’ve tried to deserialize dictionary whis strongly typed(and not string) keys, I’ve got an exception similar to the following Type ‘System.Collections.Generic.Dictionary`2[[System.Drawing.KnownColor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a],[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]’...

    JavaScriptSerializer extension DeserializeDictionary<TKey, TValue>

    When I’ve tried to deserialize dictionary whis strongly typed(and not string) keys, I’ve got an exception similar to the following Type ‘System.Collections.Generic.Dictionary`2[[System.Drawing.KnownColor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a],[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]’...

    Continue Reading...