DotNext by Roman Sakno

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

 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 HasFlag<T>(T value, T flag) where T : struct, Enum

Determines whether one or more bit fields are set in the given value.

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.

public static RuntimeTypeHandle TypeOf<T>()

Returns the runtime handle associated with type T.