我创建了一个长度为"132370292“的StringBuilder,当我试图使用抛出OutOfMemoryException的ToString()方法获取字符串时。different sources by Appending to the String Builder.");{ Console.WriteLine("Wri
我想知道为实际OOM抛出的OOM异常(内存耗尽)和当抛出的异常是否有什么区别。我有以下导致OOM的代码(没有app.config更改,gcAllowVeryLargeObjects默认设置为false):{ doubleb;
// Causes OOM due to the 2GB object limit.List<Data> a = new List<Data>(13421