Quantcast
Channel: Answers by "dubbreak"
Viewing all articles
Browse latest Browse all 68

Answer by dubbreak

$
0
0
Capacity is simply the current capacity of the list before it has to expand again. Count is the right way to get how many items are currently in the list. The framework handles the capacity if you are really interested you can google how .net/mono decides to expand a list. To add to a generic list at the end simply use the AddRange to add a list or add to add an item (and let the framework worry about size).

Viewing all articles
Browse latest Browse all 68

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>