CodeRush Xpress

Refactorings for Loops and Blocks

 

Add Block Delimiters

This refactoring is only available in C#.

Embeds a child statement inside brace delimiters.

Before:

[C#]

if (files == null)
  files = Directory.GetFiles(_StartingFolder);

After:

[C#]

if (files == null)
{
  files = Directory.GetFiles(_StartingFolder);
}

Create With Statement

This refactoring is only available in Visual Basic.

Creates a Visual Basic With statement for the specified instance within the selection.

Refactoring - Create With Statement

If more than one qualifying instance exists, a sub menu will allow you to select the instance to become the subject of the With statement.

Inline With Statement

This refactoring is only available in Visual Basic.

Inlines the object reference of a Visual Basic With statement into all dot-references.

Refactoring - Inline With Statement

Remove Block Delimiters

This refactoring is only available in C#.

Removes unnecessary brace delimiters in C#.

Before:

[C#]

if (files == null)
{
  files = Directory.GetFiles(_StartingFolder);
}

After:

[C#]

if (files == null)
  files = Directory.GetFiles(_StartingFolder);
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.