Object initializers and Collection initializers in asp.net ?

Object initializer in asp.net, C#.net 4.0 features. Object initializers is one of the most important feature of C # 3.0.What is Object initializers?Using Object initializers we can initialize a object of that type without explicitly invoking the constructor of that particular type. Object initializers:I will explain this with a piece of code:class Student{    public … Read more