Home > Code Generation, Coding Helpers > Coding Helpers – Add Initialization

Coding Helpers – Add Initialization

August 15th, 2012

The Add Initialization code provider inserts an initialization of the selected field or auto-implemented property to each constructor of the active type. The code provider is useful when you want to initialize those objects with a different default value:

CodeRush Add Initialization preview
Once the code provider is applied, you will get the following initialization generated in each constructor:

CodeRush Add Initialization result

You can change the value of each initialization separately.

—–
Products: CodeRush Pro
Versions: 12.1 and up
VS IDEs: 2008 and up
Updated: Aug/15/2012
ID: C178

Similar Posts: