C# 工厂反射源码

上传者: bbllxue | 上传时间: 2023-03-07 10:22:59 | 文件大小: 751KB | 文件类型: RAR
/// /// 创建对象或从缓存获取 /// public static object CreateObject(string AssemblyPath, string ClassNamespace) { object objType = DataCache.GetCache(ClassNamespace);//从缓存读取 if (objType == null) { try { objType = Assembly.Load(AssemblyPath).CreateInstance(ClassNamespace);//反射创建 DataCache.SetCache(ClassNamespace, objType);// 写入缓存 } catch (System.Exception ex) { LogHelper.WriteLog(typeof(DataAccess), LogType_Enum.Error, ex); return null; } } return objType; }

文件下载

资源详情

[{"title":"( 142 个子文件 751KB ) C# 工厂反射源码","children":[{"title":"Form1.cs <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"ErrorLogConfig.config <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"LogConfig.config <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 488B </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"app.config <span style='color:#111;'> 396B </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 2.12KB </span>","children":null,"spread":false},{"title":"TestWin.csproj <span style='color:#111;'> 4.61KB </span>","children":null,"spread":false},{"title":"TestWin.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"TestWin.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"TestWin.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"TestWin.exe <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.48KB </span>","children":null,"spread":false},{"title":"TestWin.csprojResolveAssemblyReference.cache <span style='color:#111;'> 23.20KB </span>","children":null,"spread":false},{"title":"TestWin.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"TestWin.csproj.GenerateResource.Cache <span style='color:#111;'> 975B </span>","children":null,"spread":false},{"title":"BLL.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"Factory.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"DAL.pdb <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false},{"title":"IBLL.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"ErrorLogConfig.config <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"LogConfig.config <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"TestWin.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"Factory.dll <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"TestWin.exe <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"IDAL.pdb <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"IBLL.pdb <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"IDAL.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"DAL.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"Common.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"TestWin.exe.config <span style='color:#111;'> 396B </span>","children":null,"spread":false},{"title":"TestWin.vshost.exe.config <span style='color:#111;'> 396B </span>","children":null,"spread":false},{"title":"Common.dll <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"log4net.dll <span style='color:#111;'> 280.00KB </span>","children":null,"spread":false},{"title":"applicationLog.log <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"BLL.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"TestWin.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"BLL.csproj <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"TestBLL.cs <span style='color:#111;'> 556B </span>","children":null,"spread":false},{"title":"BLL.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"BLL.csprojResolveAssemblyReference.cache <span style='color:#111;'> 17.46KB </span>","children":null,"spread":false},{"title":"BLL.csproj.FileListAbsolute.txt <span style='color:#111;'> 965B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.78KB </span>","children":null,"spread":false},{"title":"BLL.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"BLL.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"Factory.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"IBLL.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"Factory.dll <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"IDAL.pdb <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"IBLL.pdb <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"IDAL.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"Common.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"Common.dll <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"log4net.dll <span style='color:#111;'> 280.00KB </span>","children":null,"spread":false},{"title":"BLL.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"MVCProject.sln <span style='color:#111;'> 8.29KB </span>","children":null,"spread":false},{"title":"MVCProject.suo <span style='color:#111;'> 78.50KB </span>","children":null,"spread":false},{"title":"LogHelper.cs <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":"日志配置格式.txt <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"LogType_Enum.cs <span style='color:#111;'> 685B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"BaseObject.cs <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false},{"title":"LogHelper1.cs <span style='color:#111;'> 5.71KB </span>","children":null,"spread":false},{"title":"log4net.dll <span style='color:#111;'> 280.00KB </span>","children":null,"spread":false},{"title":"Common.csproj.FileListAbsolute.txt <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.78KB </span>","children":null,"spread":false},{"title":"Common.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"Common.dll <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"Common.csproj <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"Common.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"Common.dll <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"log4net.dll <span style='color:#111;'> 280.00KB </span>","children":null,"spread":false},{"title":"IDAL.csproj <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"ITestDAL.cs <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"IDAL.pdb <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.56KB </span>","children":null,"spread":false},{"title":"IDAL.csproj.FileListAbsolute.txt <span style='color:#111;'> 268B </span>","children":null,"spread":false},{"title":"IDAL.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"IDAL.pdb <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"IDAL.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"ITestBLL.cs <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"IBLL.csproj <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"IBLL.csproj.FileListAbsolute.txt <span style='color:#111;'> 268B </span>","children":null,"spread":false},{"title":"IBLL.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"IBLL.pdb <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.56KB </span>","children":null,"spread":false},{"title":"IBLL.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"IBLL.pdb <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"Class1.cs <span style='color:#111;'> 157B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Model.dll <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.57KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明