Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-263

Deserialization of array that was serialized with nominalType object fails due to lack of type information

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None
    • # Replies:
      2
    • Last comment by Customer:
      false

      Description

      Can reproduce using this class:

      public class C

      { public ObjectId Id; public object Obj; }

      and this code:

      collection.RemoveAll();
      var c = new C { Obj = new int[]

      { 1, 2, 3 }

      };
      collection.Insert(c);

      var r = collection.FindOneAs<C>(); // fails

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rstam Robert Stam
                Reporter:
                rstam Robert Stam
                Participants:
                Last commenter:
                Rathi Gnanasekaran
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  6 years, 7 weeks, 1 day ago