I want to create a list, that will handle A LOT (number of items will be stored in ulong
) of items inside. I know, its a bit too much (int is sufficient for this task), but I was just wondering is this possible. Mainly: normal List can take as argument for operator []
only int. I suppose its a limit of Lists. How to make larger Lists? Is there any other class, or would I have to work with List<List<byte>>
?
Asked
Active
Viewed 499 times
0

SkillGG
- 647
- 4
- 18
1 Answers
0
I would go with a Dictionary<ulong, T>
.
As long as the size of your Dictionary doesn't exceed the maximum authorized size, you will be fine.

Martin Verjans
- 4,675
- 1
- 21
- 48
-
Yes! That's what I was thinking about. I knew, that there has to be a way. That I don't have to do any `List
- >` shenanigans or (worse) make own class for it.
>`
– SkillGG Apr 05 '19 at 05:36