GC.Collect()

前端 未结 7 2090
伪装坚强ぢ
伪装坚强ぢ 2020-11-27 19:21

Ok, I\'ve read a couple of topics about it, but here it goes. Let\'s imagine I have an application where basically every now and then I will click on a button, a lot of thin

7条回答
  •  没有蜡笔的小新
    2020-11-27 19:34

    There's almost never a good reason to call GC.Collect().

    In your case, there is absolutely no reason to call it. If you're idle for an hour, the GC will do its collections.

提交回复
热议问题