Blogs about: Object Initializer

Featured Blog

#838 - Object and Collection Initializers as Parameters

Sean wrote 1 week ago: You can use object and collection initializers to initialize an object or collection when it is decl … more →

Tags: Data Types, C#, Collection Initializer

#837 - Object Initializers within Collection Initializers1 comment

Sean wrote 1 week ago: Recall that you can initialize a collection when it is declared, using a collection initializer. Lis … more →

Tags: Data Types, C#, generic list, Collection Initializer

#836 - Initializing a Generic List with an Object Initializer3 comments

Sean wrote 2 weeks ago: Instead of using the Add method repeatedly to populate a generic list, you can use an object initial … more →

Tags: Data Types, C#, generic list

#704 - Using an Object Initializer with Any Constructor

Sean wrote 6 months ago: One common pattern for using an object initializer to initalize select properties or fields of an ob … more →

Tags: Classes, C#, Constructor

#703 - Object Initializers Allow Setting Either Fields or Properties

Sean wrote 6 months ago: When you use an object initializer, you can specify the value that one or more of the object’s … more →

Tags: Classes, C#

#656 - Nested Object Initializers

Sean wrote 8 months ago: When using an object initializer to initialize the contents of an object, you can nest an inner obje … more →

Tags: Classes, C#

#655 - Initializing Only Some Properties with An Object Initializer

Sean wrote 8 months ago: Using an object initializer, you can initialize an object by specifying values for its public proper … more →

Tags: Classes, C#

#649 - Creating an Anonymous Type2 comments

Sean 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 →

Tags: Classes, C#, anonymous type

#648 - Using an Object Initializer 6 comments

Sean wrote 9 months ago: You typically initialize the data members of an object by invoking one of the object’s constru … more →

Tags: Classes, C#

Inserting an Item in IQueryable Object using Union Method and LINQ.1 comment

Kaushal 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 →

Tags: LINQ, VB9, Generic, Visual Studio 2008, Framework 3.5, union, IQueryable, c3

Object Initializer in VB.Net 9/10

Kaushal wrote 3 years ago: Object Initializer is a very good fetaure in VB.Net 9.0 and 10, Object Initializer can initialize th … more →

Tags: VB9, LINQ, C#, Framework 3.5, Visual Studio


Related Tags
All →

Follow this tag via RSS