DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="1.0.0" />

 Intrinsics

public static class Intrinsics
Represents highly optimized runtime intrinsic methods.
public static void Bitcast<T, TResult>(ref T input, out TResult output) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType) where TResult : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Obtain a value of type TResult by reinterpreting the object representation of T.

public static T DefaultOf<T>()

Returns default value of the given type.

public static bool IsDefault<T>(T value)

Indicates that specified value type is the default value.

public static bool IsNullable<T>()

Provides the fast way to check whether the specified type accepts null value as valid value.