Quick way to create constructor of class in visual studio 2017/2019

There are so many ways to create the quick constructor in visual studio

Approach 1: Using short cut ctor in class, but we cannot create parameterized constructor using this approach

Approach 2: using pick members

In this approach it will the pick the suitable input parameter and generate the parameterized constructor for us.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.