public void AttributeTest() { var extInf = ClassExtensionInfo.GetByType(typeof(ETest)); Assert.IsFalse(extInf.Hidden()); Assert.IsTrue(extInf.Name() == "Wow"); }
public static byte[] GetIcon(this IClassExtension classExtension) { var extInf = ClassExtensionInfo.GetByType(classExtension.GetType()); return(extInf.Icon()); }
public static string GetName(this IClassExtension classExtension) { var extInf = ClassExtensionInfo.GetByType(classExtension.GetType()); return(extInf.Name()); }
/// <summary> /// 为某个拓展获取包装类 /// </summary> /// <param name="extType"></param> /// <returns></returns> protected virtual IExtensionInfo CreateExtensionInfo(Type extType) { return(ClassExtensionInfo.GetByType(extType)); }