Assumes.Is<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.
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