C# Object Initializer
How to initialize objects by using an object initializer
You can use object initializers to initialize type objects in a declarative manner without explicitly invoking a constructor for the type.
The following examples show how to use object initializers with named objects.
Last updated