共用方式為


PexInvariant.CreateInstance<T> Method

Definition

Creates an instance of a type with a contract invariant method.

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

Type Parameters

T

Returns

T

Applies to