.NET Answers

ASP.NET, HTML, CSS, Visual Studio, CSharp, VB.NET and other programming items of interest.
Subscribe

Object Initialization in CSharp 3.0 and VB.NET 9

November 28, 2007 By: Dave Category: none

Yesterday we looked at the new var keyword in CSharp.  This makes CSharp variable declaration similar to VB.  After all, they’ve had the DIM keyword for years which essentially does the same thing.

Today, we’re going to look at object initializers, which have been added to both CSharp and VB.

(more…)

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!