You can use object and collection initializers to initialize an object or collection when it is declared. You can also use an object initializer anywhere that an instance of the corresponding object… more →
2,000 Things You Should Know About C#wrote 1 week ago: You can use object and collection initializers to initialize an object or collection when it is decl … more →
wrote 1 week ago: Recall that you can initialize a collection when it is declared, using a collection initializer. Lis … more →
wrote 2 weeks ago: Instead of using the Add method repeatedly to populate a generic list, you can use an object initial … more →
wrote 6 months ago: One common pattern for using an object initializer to initalize select properties or fields of an ob … more →
wrote 6 months ago: When you use an object initializer, you can specify the value that one or more of the object’s … more →
wrote 8 months ago: When using an object initializer to initialize the contents of an object, you can nest an inner obje … more →
wrote 8 months ago: Using an object initializer, you can initialize an object by specifying values for its public proper … more →
wrote 9 months ago: An anonymous type is a temporary data type that is inferred based on the data that you include in an … more →
wrote 9 months ago: You typically initialize the data members of an object by invoking one of the object’s constru … more →
wrote 3 years ago: Hi, Today I would like to show an interesting and useful example of how to insert an Item in IQuerya … more →
wrote 3 years ago: Object Initializer is a very good fetaure in VB.Net 9.0 and 10, Object Initializer can initialize th … more →