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:

Latest comments (0)