/// <summary> /// {@inheritDoc} </summary> public virtual IEnumerator <int?> GetEnumerator() { return(Incrementor.Create().WithStart(start).WithMaximalCount(max + (step > 0 ? 1 : -1)).WithIncrement(step)); }
/// <summary> /// {@inheritDoc} </summary> public virtual IEnumerator <int> GetEnumerator() { Incrementor withIncrement = Incrementor.Create().WithStart(this.start).WithMaximalCount(this.max + (this.step > 0 ? 1 : -1)).WithIncrement(this.step); return(MyUtils.ToEnumerator(withIncrement)); }