摘要:
public class FlushMemory { [DllImport("kernel32.dll")] public static extern bool SetProcessWorkingSetSize(IntPtr proc, int min, int max); /// <summary> /// 释放内存 /// </summary> public static void Flush() { GC.Collect(); GC.WaitForPendingFinalizers(); if (Environment.OSVersion.Pl 阅读全文