Class ReinterpretCast
- Namespace
- LfrlAnvil
- Assembly
- LfrlAnvil.Core.dll
Contains methods for unsafe reinterpret casting.
public static class ReinterpretCast
- Inheritance
-
ReinterpretCast
- Inherited Members
Methods
To<T>(object?)
Reinterprets the provided value
as an object of the desired reference type.
[Pure]
public static T? To<T>(object? value) where T : class
Parameters
value
objectValue to cast.
Returns
- T
Type Parameters
T
Desired type.
Remarks
This method is unsafe, use with caution. See As<T>(object) for more information.