Converts an array of bytes into a Boolean value.
[Visual Basic] Public Shared Function ToBoolean( _ ByVal value() As Byte, _ ByVal startIndex As Integer _ ) As Boolean [C#] public static bool ToBoolean( byte[] value, int startIndex ); [C++] public: static bool ToBoolean( unsigned char* value[], int startIndex ); [JScript] public static function ToBoolean( value : Byte[], startIndex : int ) : Boolean;
true if the unsigned byte value (i.e., the first byte beginning at startIndex) of value is nonzero; otherwise, false.
Exception Type | Condition |
---|---|
ArgumentException | value is a null reference (in Visual Basic Nothing). |
ArgumentException | startIndex is less than zero or greater than the length of value. |
BitConverter Class | BitConverter Members | System Namespace