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:

Top comments (0)

12 APIs That You Will Love

Free and easy to use APIs for your next project, learning a new technology, or building a new feature.