PexInvariant.CreateInstance<T> 方法

定义

创建具有协定固定方法的类型的实例。

public:
generic <typename T>
 where T : class static T CreateInstance();
public static T CreateInstance<T> () where T : class;
static member CreateInstance : unit -> 'T (requires 'T : null)
Public Shared Function CreateInstance(Of T As Class) () As T

类型参数

T

返回

T

适用于