As we can see, we can also use var
to create names
. Every time we add a value to the list, its capacity will automatically grow.
Yikes! If we wanted to declare a list of strings we would need to use List<string>
. Otherwise, we can declare our list by simply using var
.