This extension helps to initialize all the properties from the constructor. Default behavior offered in Visual Studio is to initialize a single property from the constructor, there is no default option to initialize all the existing properties from a constructor. This extension comes in handy when anyone wants to move from property-based injection to constructor-based injection. This extension will modify the constructor to add additional arguments to initialize the properties, and also it provides an additional code fix that helps to mark the properties as private. Note: Open Image in a new tab by right-clicking on animated GIF to view it fullscreen Scenario 1: Constructor Not Exists Scenario 2: Partial Constructor Exists Scenario 3: Optional Code Fix to make the properties private after initializing it from constructor Scenario 4: Apply the fix across solution |