Beispiel #1
0
 /// <summary>
 /// {@inheritDoc} </summary>
 public virtual IEnumerator <int?> GetEnumerator()
 {
     return(Incrementor.Create().WithStart(start).WithMaximalCount(max + (step > 0 ? 1 : -1)).WithIncrement(step));
 }
Beispiel #2
0
            /// <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));
            }