Generate Code using ReSharper

Navigation Path: Place the cursor in the class file and navigate to ReSharper | Edit | Generate Code
 
 

Or

You can set the shortcut in Tools-> Options-> Keyboard

And Search for the operation and assign the shortcut
 
 

Click Constructor

If you don’t have any fields, it will generate the default constructor
 
 

If you have fields, It will ask to select parameters for constructor and initialize them, the no of parameters shown to select in constructor window depends on no of un initialized fields in the class

Ebook Download
View all
Learn
View all