Freigeben über


Assumes.Is<T>(Object) Method

Definition

Throws Microsoft.Assumes.InternalErrorException if the specified object is not of a given type.

public:
generic <typename T>
 static void Is(System::Object ^ value);
[System.Diagnostics.DebuggerStepThrough]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static void Is<T> (object? value);
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")>]
static member Is : obj -> unit
Public Shared Sub Is(Of T) (value As Object)

Type Parameters

T

The type the value is expected to be.

Parameters

value
Object

The value to test.

Attributes

Applies to