Esempio n. 1
0
        private CrontabField(CrontabFieldImpl impl, string expression)
        {
            _impl = impl ??
                    throw new ArgumentNullException(nameof(impl));
            _bits = new BitArray(impl.ValueCount);

            _bits.SetAll(false);
            _minValueSet = int.MaxValue;
            _maxValueSet = -1;

            _impl.Parse(expression, Accumulate);
        }
Esempio n. 2
0
 /// <summary>
 /// Parses a crontab field expression given its kind.
 /// </summary>
 public static CrontabField Parse(CrontabFieldKind kind, string expression)
 {
     return(new CrontabField(CrontabFieldImpl.FromKind(kind), expression));
 }