本文介绍了谁在C#中调用gc.collect()?它是CLR吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Who calls GC.Collect() in C#? is it a CLR?





我尝试过的事情:



我试图找到GC.Collect()的工作但我找不到任何好文章。请帮助理解GC的调用者.Collect()



What I have tried:

I have tried to find the working of GC.Collect() but I didnt find any good article. Please help to understand the caller of the GC.Collect()

推荐答案

引用:

谁在C#中调用GC.Collect()?它是CLR吗?

Who calls GC.Collect() in C#? is it a CLR?



我(你的代码)调用 GC.Collect(),我相信。



[]

[]


It's you (your code) who calls GC.Collect(), I belive.

GC.Collect Method (System)[^]
When to call GC.Collect() – Rico Mariani's Performance Tidbits[^]



这篇关于谁在C#中调用gc.collect()?它是CLR吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 23:15
查看更多