BitConverter: ToBoolean |
Converts an array of bytes to a Boolean value.
Public Function ToBoolean( ByRef Value ( ) As Byte, ByVal StartIndex As Long ) As Boolean
The boolean value is created from one byte. If the byte is a non-zero value, True is returned, otherwise, False is returned.
Exception | Condition |
---|---|
ArgumentNullException | Value is uninitialized. |
ArgumentOutOfRangeException | StartIndex is less than zero or greater than the length of Value minus 1. |