LINQ support for `switch-case` expression

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Unknown
    • None
    • Affects Version/s: 2.18.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      How to use `$switch`/`$branch`/`$case` with LINQ v3?

      I find that `p => p.Mode == 1 ? "A" : "B"` will be translated into `$cond`/`$if`/`$else`. But currently it seems does not support `switch` pattern:

      p => p.Mode switch
      {
          1 => "A",
          2 => "B",
          _ => "Z"
      }

      Any possibility to implement it? Or did I miss something already documented before?

      Thanks in advance.

            Assignee:
            Robert Stam (Inactive)
            Reporter:
            LeaFrock N/A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: