Archive

Archive for the ‘Code Generation’ Category

Code Gen – Declare Struct

November 5th, 2010 Comments off

Declare Struct code provider generates a structure for the current type reference to a non-existent type. If the type reference on the editor caret creates a new instance of a non-existent type that takes some arguments, the appropriate constructor is generated for the new structure:

CSharp:

CodeRush Declare Struct

Read more…

Code Gen – Declare Class

November 5th, 2010 Comments off

Declare Class code provider generates a class for the current type reference to a non-existent type. If the type reference on the editor caret creates a new instance of a non-existent type that takes some arguments, the appropriate constructor is generated for the new class.

CSharp:

CodeRush Declare Class

Read more…

CodeRush Pro declaration features

August 4th, 2010 Comments off

CodeRush Pro includes powerful features to intelligently declare types (classes, structures, interfaces), members, fields, local variables and so much more.

Code Templates

Templates are blocks of code that expand from short abbreviations typed into the code editor. Using code templates decreases code creation time, because it avoids having to type the entire code manually and allows creating regular code sections with only a few keystrokes. Read more…

CodeRush Xpress declaration features

July 6th, 2010 Comments off

CodeRush Xpress includes powerful features to intelligently declare types (classes, structures, interfaces), members, fields, local variables and so much more.

Add Contract

This feature automates the very common task of checking the parameters to a method, to make sure that all have been initialized. Having all the parameter values checked for initialization in one place at the top of the method body results in clearer code . This also allows you to provide a centralized response to invalid parameter values, if needed.

Read more…