Logo

Programming-Idioms

History of Idiom 134 > diff from v33 to v34

Edit summary for version 34 by Phillpassos:
New Csharp implementation by user [Phillpassos]

Version 33

2019-09-26, 15:34:20

Version 34

2019-09-26, 15:38:52

Idiom #134 Create a new list

Declare and initialize a new list items, containing 3 elements a, b, c.

Idiom #134 Create a new list

Declare and initialize a new list items, containing 3 elements a, b, c.

Extra Keywords
array vector slice tuple
Extra Keywords
array vector slice tuple
Imports
using System.Collections.Generic;
Code
var items = new List<T>{a,b,c};
Comments bubble
Where T is the type of the list objects.
Doc URL
https://docs.microsoft.com/pt-br/dotnet/api/system.collections.generic.list-1?view=netframework-4.8