C#基础_手动GC垃圾处理
[DllImport("kernel32.dll", EntryPoint = "SetProcessWorkingSetSize")]
public static extern int SetProcessWorkingSetSize(IntPtr process, int minSize, int maxSize);
public static void ClearMemory()
{
GC.Collect();
GC.WaitForPen...
原创
2021-06-10 18:02:24 ·
1223 阅读 ·
0 评论