Telerik® JustCode™ by Progress

With Telerik® JustCode™'s Linq Conversions you can now easily switch between different representations of Linq queries.

Note

Language Support

Supported: C#, VB.NET

Not relevant: JavaScript, ASP.NET, XAML, HTML

To convert Linq query to extension methods syntax

  1. Place the cursor on a Linq query where you'd like to use extension methods syntax.

  2. Press Alt+Insert. From the pop-up menu select To Extension Methods Syntax.

    Convert Linq Query To Extensions
  3. The result is:

    Convert Linq Query To Extensions Result

To convert Linq to foreach

  1. Place the cursor on a Linq statement you'd like to convert to foreach.

  2. Press Alt+Insert. From the pop-up menu select To Foreach Statement.

    Convert Linq Query To Foreach
  3. The result is:

    Convert Linq Query To Foreach Result

To convert foreach to Linq

  1. Place the cursor on a foreach statement you'd like to convert to Linq syntax.

  2. Press Alt+Insert. From the pop-up menu select To Linq Expression.

    Convert Foreach To Linq
  3. The result is:

    Convert Foreach To Linq Result

See Also