ValueTypeExtensions
Various extensions for value types.
public static void BitCast<FROM, TO>(this FROM input, out TO output) where FROM : ValueType modreq(System.Runtime.InteropServices.UnmanagedType) where TO : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
Obtain a value of type TO by
reinterpreting the object representation of FROM.
public static TO BitCast<FROM, TO>(this FROM input) where FROM : ValueType modreq(System.Runtime.InteropServices.UnmanagedType) where TO : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
Obtain a value of type TO by
reinterpreting the object representation of FROM.
Create boxed representation of the value type.
Checks whether the specified value is equal to one
of the specified values.
Checks whether the specified value is equal to one
of the specified values.