Object and Collection Initializer in C#
Object initializers enable us to assign values to fields or attributes of an object without running a function Object(). In this blog, we will be discussing Object and Collection Initializer in C# with the help of suitable examples.