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