Object and Collection Initializers Feature in C# 3.0
2 Comments
C# 3.0 introduced the another interesting feature Object and Collection initialization expressions. Object Intialization Expressions allows you to initialize an object without invoking the constructor and setting its properties. If you take Employee Class as an Example: public class Employee…