Exemplo n.º 1
0
        public static IEnumerable <bit> ToBits(this string b)
        {
            b = new string(b.Reverse().ToArray());
            var r = new ImprovedList <bit>();

            r = b.Aggregate(r, (current, c) => current + (c == '1' ? new bit(true) : c == '0' ? new bit(false) : null));
            r.RemoveAll(bit => bit == null);
            return(r);
        }
Exemplo n.º 2
0
Arquivo: Bit.cs Projeto: Nucs/nlib
 public static IEnumerable<bit> ToBits(this string b) {
     b = new string(b.Reverse().ToArray());
     var r = new ImprovedList<bit>();
     r = b.Aggregate(r, (current, c) => current + (c == '1' ? new bit(true) : c == '0' ? new bit(false) : null));
     r.RemoveAll(bit => bit == null);
     return r;
 }
Exemplo n.º 3
0
 public ProcessLog() {
     Logs = new ImprovedList<LoggedLine>(0);
     CDTimer = new CountdownTimer(5000);
     CDTimer.Elapsed += CdTimerOnElapsed;
 }
Exemplo n.º 4
0
 public ProcessLog()
 {
     Logs             = new ImprovedList <LoggedLine>(0);
     CDTimer          = new CountdownTimer(5000);
     CDTimer.Elapsed += CdTimerOnElapsed;
 }