Why can't I use arrays bigger than 2 GB? Is there a deeper problem or is it simply implemented on int
?
It seems that .net core throws an exception if I try to allocate a array with 10 billion elements:
int[] bigArray = new int[10_000_000_000]; // throws exception