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

MongoCursor SetFields not working with array of field names

    XMLWordPrintableJSON

Details

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

    Description

      The following won't compile:

      cursor.SetFields("a", "b", "c");

      The following compiles but doesn't work:

      cursor.SetFields(new[]

      { "a", "b", "c" }

      );

      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: