Box<T>.DangerousGetFrom(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.
public static Microsoft.Toolkit.HighPerformance.Box<T> DangerousGetFrom (object obj);
static member DangerousGetFrom : obj -> Microsoft.Toolkit.HighPerformance.Box<'T (requires 'T : struct)>
Public Shared Function DangerousGetFrom (obj As Object) As Box(Of T)
Parameters
Returns
A Box<T> reference pointing to obj
.
Remarks
This method doesn't check the actual type of obj
, so it is responsibility of the caller to ensure it actually represents a boxed T
value and not some other instance.