How to

use collection initializers

Published: 25. November 2011 | Updated: 25. November 2011
License: Microsoft Public License (MS-PL)
Categories: Collections
Tags: C# Collections
Was this snippet helpful for you? YESYES / NONO
var collection = new List<int> { 1, 2, 3, 4, 5 };
Send us feedback about this snippet »



Related Snippets: