Пример #1
0
        public static ulong gID <T>() where T : class
        {
            Type R = typeof(T);

            System.Attribute[] attrs = System.Attribute.GetCustomAttributes(R);
            foreach (System.Attribute attr in attrs)
            {
                if (attr is MISexAttribute)
                {
                    MISexAttribute a = (MISexAttribute)attr;
                    return(a.m_ID);
                }
            }
            return(0);
        }
Пример #2
0
        public static bool ISC <T>() where T : class
        {
            Type R = typeof(T);

            System.Attribute[] attrs = System.Attribute.GetCustomAttributes(R);
            foreach (System.Attribute attr in attrs)
            {
                if (attr is MISexAttribute)
                {
                    MISexAttribute a = (MISexAttribute)attr;
                    return(a.m_icore);
                }
            }
            return(false);
        }
Пример #3
0
        public static string gNAME <T>() where T : class
        {
            Type R = typeof(T);

            System.Attribute[] attrs = System.Attribute.GetCustomAttributes(R);
            foreach (System.Attribute attr in attrs)
            {
                if (attr is MISexAttribute)
                {
                    MISexAttribute a = (MISexAttribute)attr;
                    return(a.m_name);
                }
            }
            return("404");
        }
Пример #4
0
        public static MISexAttribute fMOD <T>() where T : class
        {
            Type R = typeof(T);

            System.Attribute[] attrs = System.Attribute.GetCustomAttributes(R);
            foreach (System.Attribute attr in attrs)
            {
                if (attr is MISexAttribute)
                {
                    MISexAttribute a = (MISexAttribute)attr;
                    return(a);
                }
                else
                {
                    throw new x46_FW.MIS.EXC.ModuleNotFoundException("x");
                }
            }
            return(null);
        }