Returns a Boolean value converted from one byte at a specified position in a byte array.
Syntax
public static
bool ToBoolean (
byte[] value,
int startIndex)
Parameters
- value
-
An array of bytes.
- startIndex
-
The starting position within value.
Returns
true if the byte at startIndex in value is nonzero; otherwise, false.
Remarks
Requirements
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0