I’m relatively new to CLI and I need to keep an array of int values and it needs to be expandable (dynamic). ArrayList doesn’t like int because it’s not an “object”.
What is the ArrayList equivalent for holding ints or doubles?
EDIT: Oh lord. I’m way off my game today. It doesn’t have a problem with int. I just have to typecast it to int when I index the array. Sorry for wasting your time…
This question seems to be too open ended. The best I can answer is you can either use a generic list (
System.Collections.Generic.List) or box the integers, in which case they’ll act as objects. Are you writing IL? A compiler?