Class FastActivator<T>
Fast alternative to Activator.CreateInstance<T> for reference types with default constructor
public static class FastActivator<T>
Type Parameters
T
- Inheritance
-
FastActivator<T>
- Inherited Members
Remarks
Измененная версия FastObjectFactory2<T> отсюда: http://stackoverflow.com/questions/2024435/how-to-pass-ctor-args-in-activator-createinstance-or-use-il
Properties
CreateObject
Create object handler.
public static Func<T> CreateObject { get; }
Property Value
- Func<T>
NotSupported
Not supported mode.
public static bool NotSupported { get; set; }