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

C# Driver should serialize shorts (System.Int16) as if they were ints

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      if I have an object with a member "short People" it gets serialized into a mongo collection like so:

      "People" : {
      "_t" : "System.Int16",
      "_v" : 300
      },

      Why not serialize as an int? If its too big let it throw on deserialization if its too big.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            zippy1981 Justin Dearing
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: