deputy.cs

来自「某个公司需要维持良好的客户关系」· CS 代码 · 共 26 行

CS
26
字号
using System;
using System.Reflection;
using System.Configuration;
using CRM.IDAL;
namespace CRM.DALFactory
{
	/// <summary>
	/// Deputy 的摘要说明。
	/// </summary>
	public class Deputy
	{
		
			public static IDeputy Create() 
			{

				/// Look up the DAL implementation we should be using
				string path = System.Configuration.ConfigurationSettings.AppSettings["WebDAL"];
				string className = path + ".Deputy";

				// Using the evidence given in the config file load the appropriate assembly and class
				return (IDeputy)Assembly.Load(path).CreateInstance(className);
			}
		
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?