Table of Contents

Class FastActivator<T>

Namespace
Ecng.Common
Assembly
Ecng.Common.dll

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; }

Property Value

bool