Is the StaticFactory in codecampserver a well known pattern?
- by Merritt
UPDATE: this is a duplicate of
Is the StaticFactory in codecampserver a well known pattern?
Here's the pertinent bit of code:
public class GenericFactory
{
public static Func<object> CreationClosure;
public T GetDefault<T>()
{
return (T) CreationClosure();//executes closure
}
}