예제 #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));
 }