Projection of constant with no known serializer is not supported

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 2.15.1
    • Affects Version/s: None
    • Component/s: LINQ3, Serialization
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      Summary

      The following expression (expressions not referencing the input object) in LINQ3

      var query = coll.Aggregate().Project(x => new { IsTrue = true });

      throws

      Unhandled exception. System.InvalidOperationException: Cannot find serializer for { IsTrue = True }

              Assignee:
              Robert Stam
              Reporter:
              Boris Dogadov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: