예제 #1
0
 public Task <bool> MoveNextAsync()
 {
     return(this.currentStep.HasNext(
                (next) =>
     {
         this.currentStep = next;
         return true;
     },
                (ex) =>
     {
         return true;
     },
                () =>
     {
         //this.currentStep = null;
         return false;
     }));
 }
예제 #2
0
 public YieldEnumerator(IYieldResult <T> firstStep)
 {
     this.currentStep = firstStep;
 }
예제 #3
0
 internal YieldEnumerable(YieldDelegateAsync <T> yield)
 {
     this.firstStep = new YieldResultFirst(yield);
 }