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不是基于运行时的方法。

注解

为了提高性能,应缓存生成的实例以用于其他调用。

适用于