Object Initializer in C# | C# Bangla Tutorial | Advanced C#


Object Initializer

C# 3.0 (.NET 3.5) introduced Object Initializer Syntax, a new way to initialize an object of a class or collection. Object initializers allow you to assign values to the fields or properties at the time of creating an object without invoking a constructor.

Post a Comment

Previous Post Next Post