Class Cs.QueryContinuation

java.lang.Object
org.openrewrite.csharp.tree.Cs.QueryContinuation
All Implemented Interfaces:
Cs, org.openrewrite.java.tree.J, org.openrewrite.Tree
Enclosing interface:
Cs

public static final class Cs.QueryContinuation extends Object implements Cs
Represents a LINQ query continuation using the 'into' keyword, which allows query results to be further processed in subsequent query clauses.

For example:

     // Query continuation with grouping
     from c in customers
     group c by c.Country into g
     select new { Country = g.Key, Count = g.Count() }

     // Multiple continuations
     from n in numbers
     group n by n % 2 into g
     select new { Modulo = g.Key, Items = g } into r
     where r.Items.Count() > 2
     select r
 
  • Constructor Details

    • QueryContinuation

      public QueryContinuation()
  • Method Details

    • acceptCSharp

      public <P> org.openrewrite.java.tree.J acceptCSharp(CSharpVisitor<P> v, P p)
      Specified by:
      acceptCSharp in interface Cs