List<T> numbering vs array numbering | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

List<T> numbering vs array numbering

I just learned about the list/colections feature and when it came to the RemoveAt method it made me think if the count starts at 0 as with arrays or if it starts at 1.

28th Jan 2024, 4:20 PM
Viotish
Viotish - avatar
2 Respostas
+ 1
In C# the index always starts with 0, with lists and arrays as well.
28th Jan 2024, 5:00 PM
Tibor Santa
Tibor Santa - avatar
0
Tg Tibor
28th Jan 2024, 9:08 PM
Viotish
Viotish - avatar