internal static void ResumeCollect() {
bool performCollect = false;
lock(internalSyncObject) {
if(suspendCount > 0){
suspendCount--;
}
if(suspendCount == 0)
{
for(int i=0; i < handleTypeCount; i++)
{
lock(handleTypes[i]) {
if (handleTypes[i].NeedCollection())
{
performCollect = true;
}
}
}
}
}
if(performCollect)
{
GC.Collect();
}
}