/**
         * <summary>Write bool array.</summary>
         */
        private static void WriteBoolArrayTyped(IPortableStream stream, bool[] obj)
        {
            stream.WriteByte(PortableUtils.TypeArrayBool);

            PortableUtils.WriteBooleanArray(obj, stream);
        }