bargain.cs

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

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

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

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

⌨️ 快捷键说明

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