Serialization fails if property declared as an interface has a value of null

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.6.1
    • Affects Version/s: 1.6
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      To reproduce use these classes:

          interface IWhatever { }
          class Whatever : IWhatever { }
      
          class Person
          {
              public IWhatever Whatever { get; set; }
          }
      

      and this code:

                      var p = new Person();
                      var json = p.ToJson();
      

              Assignee:
              Robert Stam
              Reporter:
              Robert Stam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: