There definitely has to be a question like this, but I'm unable to find it - perhaps I'm phrasing it wrong. All my searches have led to articles on how to use arrays in C#.
A little background: I'm trying to load many objects into an array. I'm wondering if the array will get the OutOfMemory exception due to too many pointers or the size of the cumulative objects in the array. I know that objects have an innate 2 GB size limit in .NET, but does it stem from the objects themselves in the array?
For example, if I have n objects in the array, does the array have a memory size of n * sizeof(object) or n * sizeof(pointer)?