using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
using System.Reflection;
namespace Factory
{
public class ChartFactory<T>
{
static string assemblyName = ConfigurationManager.AppSettings["sqlName"].ToString();
public static T CreateFactory(string typeName)
{
Assembly ass = Assembly.Load(assemblyName);
T t = (T)ass.CreateInstance(assemblyName + "." + typeName);
return t;
}
}
}