Assumes.Is<T>(Object) 方法

定义

Microsoft.Assumes.InternalErrorException如果指定的对象不是给定的类型,则引发。

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)

类型参数

T

值应为的类型。

参数

value
Object

要测试的值。

属性

适用于