Пример #1
0
        public void Dispose()
        {
            if (this.modules == null)
            {
                main_module.Dispose();
                return;
            }

            var modules = this.Modules;

            for (int i = 0; i < modules.Count; i++)
            {
                modules [i].Dispose();
            }
        }
Пример #2
0
 public void Dispose()
 {
     if (modules == null)
     {
         main_module.Dispose();
     }
     else
     {
         Collection <ModuleDefinition> collection = Modules;
         for (int i = 0; i < collection.Count; i++)
         {
             collection[i].Dispose();
         }
     }
 }