public static int Main() { ByteArrayList list = new ByteArrayList(); try { while (true) { list.AddByteArray(84500); } } catch (OutOfMemoryException) { } Console.Write("NodesAllocated: "); Console.WriteLine(list.NodeCount); return 100; }
public static int Main() { ByteArrayList list = new ByteArrayList(); try { while (true) { list.AddByteArray(84500); } } catch (OutOfMemoryException) { } Console.Write("NodesAllocated: "); Console.WriteLine(list.NodeCount); return(100); }