【发布时间】:2010-04-22 21:05:58
【问题描述】:
- 在 c# 中使用 operator new 可能会失败(例如,如果它需要大内存)? -已解决-
- 以及如何发现它? -已解决-
- new 运算符可能会引发哪些其他故障?
谢谢
【问题讨论】:
-
写一个像 int[] x = new int[100000000000] 这样的单行代码,看看会发生什么!
标签: c# new-operator allocation operator-keyword