Click or drag to resize
BitConverterGetBytes Method (Boolean)
Returns the specified Boolean value as an array of bytes.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static byte[] GetBytes(
	bool value
)

Parameters

value
Type: SystemBoolean
A Boolean value.

Return Value

Type: Byte
An array of bytes with length 1.
See Also