JustCode

The Convert Lambda To Named Method refactoring allows you to easily convert a lambda expression to a named method.

Note

Language Support

Supported: C#, VB.NET

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

To convert a lambda expression to a named method

  1. Move to the labda expression you want to convert.

    Convert Lambda To Named Method Selected
  2. From the Refactor menu of the VisualAid choose To Named Method.

    Convert Lambda To Named Method Executed
  3. Telerik JustCode will replace the lambda expression with a method group and will add a new method.

Caution

You can not convert a lambda expression that captures local variables.

See Also

Other Resources