public static void IgnoreCurrentHandlesAsLeaks() {
lock(internalSyncObject) {
if (CompModSwitches.HandleLeak.Level >= TraceLevel.Warning) {
HandleType[] types = new HandleType[handleTypes.Values.Count];
handleTypes.Values.CopyTo(types, 0);
for (int i = 0; i < types.Length; i++) {
if (types[i] != null) {
types[i].IgnoreCurrentHandlesAsLeaks();
}
}
}
}
}