Uploaded image for project: 'Visual Studio'
  1. Visual Studio
  2. VS-97

Handle Enum Remapping in LINQ For Type Arguments

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.3.0
    • Affects Version/s: None
    • None
    • Not Needed

      _ = GetMongoCollection<VehicleType>().AsQueryable()
                      .Where(v => v.MPG > 20)
                      .Select(v => new Tuple<VehicleMake, VehicleTypeEnum>(v.VehicleMake, v.Type));
      

      In this code snippet, the VehicleTypeEnum isn't being remapped to a Generic Class Declaration. This must be fixed to allow more broad support for tuples in LINQ.

            Assignee:
            boris.dogadov@mongodb.com Boris Dogadov
            Reporter:
            ravi.raghavan@mongodb.com Ravi Raghavan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: