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

Add support for serializing type Tuple introduced in .NET Framework 4

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0
    • Affects Version/s: 1.8
    • Component/s: None
    • None
    • Environment:
      Windows 7 64-bit
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I have a c# Fund class with a property of type Dictionary<Tuple<int,DateTime>, int> called Quartiles. I added a number of Fund objects to a collection in mongodb called "funds". They were added without any errors. I then attempted to read back the fund documents from the collection. I got an error trying to access the first document in the collection. The error message said there was a problem serializing the Quartiles property and that an item with the same key had already been added. I then attempted to inspect a sample Fund document using the mongo shell and it looks like it wasn't created properly.

      All relevant information is attached.

        1. c-sharp driver bug.txt
          12 kB
          Mary Hamlin
        2. TupleSerializer.cs
          1 kB
          Robert Stam

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            mryhmln Mary Hamlin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: