Beispiel #1
0
        public static IList <bool> Increment(this IList <bool> bits, uint amount)
        {
            var base10Converter = new Base10Converter();
            var asInt           = base10Converter.ToInt(bits) + amount;
            var asBits          = base10Converter.ToBit(asInt).ToList();

            return(asBits);
        }
        public static bool operator >(BitList list, int value)
        {
            var converter = new Base10Converter();

            return(converter.ToInt(list) > value);
        }