可以啊,Type类,GetCustomAttributes() 等等, 你去查MSDN

解决方案 »

  1.   

    typeof(Test).Get....(),一堆反射方法, 要什么都有
      

  2.   

     private static readonly string path = System.Configuration.ConfigurationSettings.AppSettings["WebDAL"];
            public DataAccess() { }
            private static object CreateObjectNoCache(string path, string CacheKey)
            {
                try
                {
                    object objType = Assembly.Load(path).CreateInstance(CacheKey);
                    return objType;
                }
                catch //(System.Exception ex)
                {
                    //string str=ex.Message;// 记录错误日志
                    return null;
                }        }
      

  3.   

    GetCustomAttributes()方法只能获取类跟属性的特性 ,不能获取方法的特性