C#垃圾回收触发条件

  • 某一代预算容量被填满
  • 显式调用GC.Collection
  • Windows报告低内存
  • CLR正在卸载AppDomain
  • CLR正在关闭

【参考】

《CLR via C#》

你可能感兴趣的:(C#,GC触发条件)