DEV Community

Cover image for Snippets in C#: Shorthand Instantiation
Matt Kenefick
Matt Kenefick

Posted on

 

Snippets in C#: Shorthand Instantiation

In order to eliminate some redundancy or increase readability, you can shrink the way you instantiate classes.

See the example below:

Oldest comments (0)

50 CLI Tools You Can't Live Without

>> Check out this classic DEV post <<