Skip to content

ByteExtensions.Parity Method

Definition

Gets the parity of a byte, i.e. whether the number of set bits is even.

public static bool Parity(this Byte value);

View source

Parameters

Name Type Description
value Byte The byte value.

Returns

Boolean

true if the number of set bits is even; false otherwise.