Tries to return an element of a sequence at a specific index.
// 3
Enumerable.create(1, 2, 3, 4)
.elementAtOrDefault(2, 'MK');
// 'TM'
Enumerable.create(11, 22, 33, 44)
.elementAtOrDefault(4, 'TM');
Tries to return an element of a sequence at a specific index.
// 3
Enumerable.create(1, 2, 3, 4)
.elementAtOrDefault(2, 'MK');
// 'TM'
Enumerable.create(11, 22, 33, 44)
.elementAtOrDefault(4, 'TM');