Know a good article or link that we're missing? Submit it!

C# Collection Initialisers

Submitted By: BlackWasp
Rating: (Not rated) (Rate It)
Share: Share By Email By Email

Visit


Description

C# 3.0 introduces collection initialisers, giving a new syntax that permits collections to be declared and populated in a single statement. They can be combined with object initialisers to provide an elegant syntax for creating a collection of objects.

Comments (0)


Add Your Rating

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar
 
Popular resources and forums for programmers on Programmersheaven.com
Assembly, Basic, C, C#, C++, Delphi, Java, JavaScript, Pascal, Perl, PHP, Python, Ruby, Visual Basic
© Copyright 2009 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin. Read the latest words from the publisher here.
Be the first to sign up for Lars Hagelin’s In-depth Outsourcing Newsletter here.
bootstrapLabs Logo A bootstrapLabs project.