Very large collection in .Net causes out-of-memory exception
The Microsoft CLR has a 2GB maximum object size limit, even the 64 bit version. (I’m not sure whether this limit is also present in other implementations such as Mono.) The limitation applies to each single object — not the total size of all objects — which means that it’s relatively easy to workaround using … Read more