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





