Пример #1
0
 private static void RevokeClassFactories()
 {
     ClassFactory.SuspendClassObjects(); // Prevent race conditions
     foreach (ClassFactory factory in s_ClassFactories)
     {
         factory.RevokeClassObject();
     }
 }
Пример #2
0
 private static void RevokeClassFactories(IEnumerable <ClassFactory> factories)
 {
     ClassFactory.SuspendClassObjects(); // Prevent race conditions
     foreach (var factory in factories)
     {
         factory.RevokeClassObject();
     }
 }