May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Since Visual Basic 2008 and .NET 3.5, the Visual Basic grammar offers another feature, named object initializers, that enables inline initialization of objects’ members when creating an instance, without the need of providing specific constructors’ overloads. For a better understanding, let’s provide a practical example. We can implement the Contact class without implementing a constructor overloads that receives any arguments for initialization:

To instantiate the class and initialize its members, according to the classical, old-fashioned syntax, we should write the following code:
The Visual Basic 2008 and 2010 syntax enables ...
Read now
Unlock full access