Exemplo n.º 1
0
        public void AttributeTest()
        {
            var extInf = ClassExtensionInfo.GetByType(typeof(ETest));

            Assert.IsFalse(extInf.Hidden());
            Assert.IsTrue(extInf.Name() == "Wow");
        }
Exemplo n.º 2
0
        public static byte[] GetIcon(this IClassExtension classExtension)
        {
            var extInf = ClassExtensionInfo.GetByType(classExtension.GetType());

            return(extInf.Icon());
        }
Exemplo n.º 3
0
        public static string GetName(this IClassExtension classExtension)
        {
            var extInf = ClassExtensionInfo.GetByType(classExtension.GetType());

            return(extInf.Name());
        }
Exemplo n.º 4
0
 /// <summary>
 /// 为某个拓展获取包装类
 /// </summary>
 /// <param name="extType"></param>
 /// <returns></returns>
 protected virtual IExtensionInfo CreateExtensionInfo(Type extType)
 {
     return(ClassExtensionInfo.GetByType(extType));
 }