コード例 #1
0
        /// <summary>
        /// 获取名称列表
        /// </summary>
        public XCIList <string> GetNameList()
        {
            XCIList <string> nameList = new XCIList <string>();

            foreach (var item in DictionaryData)
            {
                nameList.AddOrUpdate(item.Code);
            }
            return(nameList);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
ファイル: ParamBase.cs プロジェクト: wxytkzc/GitHubCode
        /// <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);
        }
コード例 #4
0
        /// <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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
ファイル: ConfigFactory.cs プロジェクト: wxytkzc/GitHubCode
 public static void AddOrUpdate(ConfigEntity entity)
 {
     ConfigData.AddOrUpdate(entity);
 }