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

Serialization of Dictionary<string, T> fails if any key is not a valid element name

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2
    • Affects Version/s: 1.1
    • Component/s: None
    • None

      To reproduce:

      public class C {
      public ObjectId Id;
      public Dictionary<string, int> Data;
      }

      var c = new C { Data = new Dictionary<string, int> {

      { "a.b", 1 }

      } };
      collection.Insert(c);

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: