示例#1
0
文件: gc.cs 项目: wwkkww1983/ZJCredit
 internal static int CollectionCount(int generation, bool getSpecialGCCount)
 {
     if (generation < 0)
     {
         throw new ArgumentOutOfRangeException("generation", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
     }
     return(GC._CollectionCount(generation, getSpecialGCCount ? 1 : 0));
 }
示例#2
0
文件: gc.cs 项目: wwkkww1983/ZJCredit
 public static int CollectionCount(int generation)
 {
     if (generation < 0)
     {
         throw new ArgumentOutOfRangeException("generation", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
     }
     return(GC._CollectionCount(generation, 0));
 }