Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 public static int CollectionCount(int generation)
 {
     if (generation < 0)
     {
         throw new ArgumentOutOfRangeException("generation", Environment.GetResourceString("ArgumentOutOfRange_GenericPositive"));
     }
     return(GC._CollectionCount(generation, 0));
 }