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

Allow constant to appear on either side of comparison operator in LINQ queries

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.4.1
    • 1.4
    • None
    • None

    Description

      Treat the following as equivalent:

      from c in collection.AsQueryable<C>() where c.X > 0 select c;
      from c in collection.AsQueryable<C>() where 0 < c.X select c;

      and similarly for other operators.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: