Пример #1
0
        private static bool Where(Type t)
        {
            ModuleArribute customAttribute = t.GetCustomAttribute <ModuleArribute>();

            if (customAttribute != null)
            {
                return(!customAttribute.Disable);
            }
            return(true);
        }
Пример #2
0
        private static int GetOrder(Type t)
        {
            ModuleArribute customAttribute = t.GetCustomAttribute <ModuleArribute>();

            if (customAttribute != null)
            {
                return(customAttribute.Order);
            }
            return(0);
        }