Factory Pattern in C#
public static class FactoryPattern<K, T> where T : class, K, new()
{
public static K GetInstance()
{
K objK;
objK = new T();
return objK;
}
}
public static class FactoryPattern<K, T> where T : class, K, new()
{
public static K GetInstance()
{
K objK;
objK = new T();
return objK;
}
}
I baked some cookies that you have to accept, if you want to enjoy my portfolio.
In order to gather information and make improvements, I should use some third-party cookies too, Can I?