CS301_03_01 - Object and Collection Initializers
Tags:
C#
, Language
, 2008
In this next video in our C# 3.0 series we'll look at Object and Collection Initializers. These work similiarly to an initialized array, where we're able to set the properties of a newly created object or multiple instances of new objects in a new collection in essentially one line of code. Let's start with object initializers ... In some ways it's similar to a constructor that populates the properties of a newly instance of an object. However, unline a constructor, you can pick and choose which properties to populate in any combination.
Downloads:
Sign up today to access downloads.
 |
CS301_03_01 - Object and Collection Inializers
Duration:
12 Minutes, 20 Seconds
Size:
9.56M
Recorded Using:
Visual Studio 2008 (all versions)
|
|
Get Free Videos via Email
Sign up for our newsletter and receive links to free videos and more.
We don't rent/sell/or commit other evil deeds with your email address. See our
Privacy Policy.
|