Quantcast
Channel: Windows Phone 7 Development for Absolute Beginners (Zune) - Channel 9
Viewing all articles
Browse latest Browse all 64

Object and Collection Initializers - Day 2 - Part 7

$
0
0

Since C# 3.0, a new, shortened syntax used to create an instance of a new class and set its properties (initialization) all in one line of code became popularized. Entire collections can be created and initialized in this manner as well. Since many code examples on MSDN and the Internet at large use this new syntax, and because it is very convenient, Bob demonstrates how to dramatically shorten your code while explaining how to understand object and collection initializers.

Download the source code in c#

Download the source code in VB.Net


Viewing all articles
Browse latest Browse all 64

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>