C# Класс System.Reflection.TypeFactory

For fast creation of types, useful for creating POCOs
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetFactory ( Type t ) : Func

Gets factory to create instance of type using the public parameterless ctor. Use it when you want to create many instances of the same type in different objects Aprox, 1.3x faster than Activator, almost as fast a manual if you cache and reuse the delegate

Приватные методы

Метод Описание
TypeFactory ( ) : System.Collections.Generic

Описание методов

GetFactory() публичный статический метод

Gets factory to create instance of type using the public parameterless ctor. Use it when you want to create many instances of the same type in different objects Aprox, 1.3x faster than Activator, almost as fast a manual if you cache and reuse the delegate
public static GetFactory ( Type t ) : Func
t Type
Результат Func