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

LINQ skip implementation is not consistent with native linq to objects

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Trivial - P5 Trivial - P5
    • None
    • 1.9.2
    • Linq
    • None

    Description

      When using the skip method with a negative number the mongo driver raises the following exception

      ArgumentException: Skip cannot be negative.

      However this is not consistent with the linq to objects implementation and therefore makes for the possibility of runtime errors slipping through unit tests when linq is using the mongodb driver.

      Attachments

        Activity

          People

            Unassigned Unassigned
            scottguymer Scott Guymer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: