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

Saving empty SortedList<object,int> crashes when getting object

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • VS2010, .NET 4

    Description

      If you save an object that has a SortedList property and then try to get it from the database you get a cast exception:

      Unable to cast object of type 'System.Object[]' to type 'System.Collections.Generic.SortedList`2[MyObject,System.Int32]'.

      Attachments

        Activity

          People

            lanwin Steve Wagner
            nisbus nisbus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: