private static Func <object> CreateFactory(Type type) { return(FastActivator.factories[type] = FastActivator.CompileFactory <object>(type)); }
/// <summary> /// Creates the instance of the type. /// </summary> /// <param name="type">The type of instance to create.</param> public static object CreateInstance(Type type) { return(FastActivator.GetFactory(type)()); }