PexSafeHelpers.ByteToBoolean(Byte) Method

Definition

Returns a bool which has the bit-pattern of the given byte.

public:
 static bool ByteToBoolean(System::Byte value);
public static bool ByteToBoolean (byte value);
static member ByteToBoolean : byte -> bool
Public Shared Function ByteToBoolean (value As Byte) As Boolean

Parameters

value
Byte

The value.

Returns

Remarks

This is a conversion that can be done in safe MSIL code; however, the C# compiler doesn't allow it.

Applies to