BattleNet.BitReader.ConvertToByte C# (CSharp) Method

ConvertToByte() public method

public ConvertToByte ( BitArray bits ) : byte
bits System.Collections.BitArray
return byte
        public byte ConvertToByte(BitArray bits)
        {
            if (bits.Count != 8)
            {
                throw new ArgumentException("bits");
            }
            byte[] bytes = new byte[1];
            bits.CopyTo(bytes, 0);
            return bytes[0];
        }