Compartilhar via


PexSafeHelpers.IsInst<T>(Object) Method

Definition

Attempts to cast a value, returning null if cast fails.

public:
generic <typename T>
 where T : class static T IsInst(System::Object ^ value);
public static T IsInst<T> (object value) where T : class;
static member IsInst : obj -> 'T (requires 'T : null)
Public Shared Function IsInst(Of T As Class) (value As Object) As T

Type Parameters

T

Parameters

value
Object

The value.

Returns

T

Returns Boolean.

Applies to