PexSafeHelpers.IsInst<T>(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.