Class Cs.WhereClause

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

public static final class Cs.WhereClause extends Object implements Cs, Cs.QueryClause
Represents a C# LINQ where clause that filters elements in a query based on a condition.

For example:

     // Simple where clause
     from p in people
     where p.Age >= 18
     select p

     // Multiple where clauses
     from p in people
     where p.Age >= 18
     where p.Name.StartsWith("J")
     select p

     // Where with complex condition
     from o in orders
     where o.Total > 1000 && o.Status == "Pending"
     select o
 
  • Constructor Details

    • WhereClause

      public WhereClause()
  • Method Details

    • acceptCSharp

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