When is it acceptable to call GC.Collect?

前端 未结 24 2560
挽巷
挽巷 2020-11-22 08:54

The general advise is that you should not call GC.Collect from your code, but what are the exceptions to this rule?

I can only think of a few very speci

24条回答
  •  孤独总比滥情好
    2020-11-22 09:26

    This isn't that relevant to the question, but for XSLT transforms in .NET (XSLCompiledTranform) then you might have no choice. Another candidate is the MSHTML control.

提交回复
热议问题