The limitation on the size of .Net array

In versions of .NET prior to 4.5, the maximum object size is 2GB. From 4.5 onwards you can allocate larger objects if gcAllowVeryLargeObjects is enabled. Note that the limit for string is not affected, but “arrays” should cover “lists” too, since lists are backed by arrays.

Leave a Comment