Provide more informative exception on deserialization of invalid type arguments of generic types

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Serialization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      For example, deserializing 

      "\{ \"A\" : { \"_t\" : \"System.Collections.Generic.List`1[[InvalidType, InvalidAssembly]]\", \"_v\" : [{ \"Y\" : 1 }] }}";
      

      to

      public class MyClass
      {
         public object A { get; set; }
      }
      

      Throws "String cannot have zero length.", instead of more informative message.

              Assignee:
              Adelin Mbida Owona
              Reporter:
              Boris Dogadov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: