Поделиться через


ConstructorInvoker.Create(ConstructorInfo) Метод

Определение

Создает новый экземпляр ConstructorInvoker.

public:
 static System::Reflection::ConstructorInvoker ^ Create(System::Reflection::ConstructorInfo ^ constructor);
public static System.Reflection.ConstructorInvoker Create (System.Reflection.ConstructorInfo constructor);
static member Create : System.Reflection.ConstructorInfo -> System.Reflection.ConstructorInvoker
Public Shared Function Create (constructor As ConstructorInfo) As ConstructorInvoker

Параметры

constructor
ConstructorInfo

Конструктор, который будет вызван.

Возвращаемое значение

Новый экземпляр.

Исключения

не constructor является методом на основе среды выполнения.

Комментарии

Для повышения производительности результирующий экземпляр должен кэшироваться для дополнительных вызовов.

Применяется к