Logo

Programming-Idioms

History of Idiom 165 > diff from v26 to v27

Edit summary for version 27 by mattdaly:
New Csharp implementation by user [mattdaly]

Version 26

2018-12-17, 18:40:03

Version 27

2019-01-06, 03:37:24

Idiom #165 Last element of list

Assign to variable x the last element of list items.

Idiom #165 Last element of list

Assign to variable x the last element of list items.

Code
var x = items[items.Count - 1];