public void RegisterFromAssembly(Assembly assembly)
 {
     if (assembly == null)
     {
         return;
     }
     foreach (var type in assembly.GetTypes())
     {
         if (MyTypeTable.ShouldRegister(type))
         {
             m_typeTable.Register(type);
         }
     }
 }
        public void RegisterFromAssembly(Assembly assembly)
        {
            if (assembly == null)
            {
                return;
            }
#if XB1 // XB1_ALLINONEASSEMBLY
            System.Diagnostics.Debug.Assert(m_registered == false);
            if (m_registered == true)
            {
                return;
            }
            m_registered = true;
            foreach (var type in MyAssembly.GetTypes())
#else // !XB1
            foreach (var type in assembly.GetTypes())
#endif // !XB1
            {
                if (MyTypeTable.ShouldRegister(type))
                {
                    m_typeTable.Register(type);
                }
            }
        }