/// <summary> /// 获取名称列表 /// </summary> public XCIList <string> GetNameList() { XCIList <string> nameList = new XCIList <string>(); foreach (var item in DictionaryData) { nameList.AddOrUpdate(item.Code); } return(nameList); }
private static void InitInterface(Assembly assembly) { Type managerType = typeof(IManager); IList <Type> types = AssemblyHelper.GetInterfaceType(assembly, managerType); foreach (Type t in types) { InterfaceEntity entity = BuildInterfaceEntity(t); ComponentList.AddOrUpdate(entity); } }
/// <summary> /// 获取分类列表 /// </summary> public XCIList <string> GetCategory() { XCIList <string> categoryList = new XCIList <string>(); foreach (var item in ParamData) { if (!string.IsNullOrEmpty(item.Category)) { categoryList.AddOrUpdate(item.Category); } } return(categoryList); }
/// <summary> /// 获取分类列表 /// </summary> public XCIList <string> GetCategory() { XCIList <string> categoryList = new XCIList <string>(); var dataList = ParamData.Where(p => p.UserID == UserID); foreach (var item in dataList) { if (!string.IsNullOrEmpty(item.Category)) { categoryList.AddOrUpdate(item.Category); } } return(categoryList); }
public static XCIList <Type> GetTypeList(Type baseClassType) { XCIList <Type> typeList = new XCIList <Type>(); Action <Assembly> action = p => { IList <Type> types = AssemblyHelper.GetTypeByBase(p, baseClassType); foreach (Type t in types) { typeList.AddOrUpdate(t); } }; LoadData(action); return(typeList); }
public static void AddOrUpdate(ConfigEntity entity) { ConfigData.AddOrUpdate(entity); }