Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 public void InitializeManagers(string nameSpace)
 {
     foreach (var type in ReflectHelper.FetchTypesInNamespace(nameSpace))
     {
         var attr = ReflectHelper.FetchTypeAttribute <ManagerDefinitionAttribute>(type);
         if (attr != null)
         {
             m_definitions.Add(new ManagerDefinition(type, attr));
         }
     }
     if (m_definitions.Count > 0)
     {
         InitializeManager(m_definitions[0]);
     }
 }