Beispiel #1
0
 private void RecurseInStackHeapToArray()
 {
     if (this.enumerator.MoveNext())
     {
         ExplosionHelper.Surface current = this.enumerator.current;
         this.length++;
         this.RecurseInStackHeapToArray();
         this.array[--this.length] = current;
     }
     else
     {
         this.array = new ExplosionHelper.Surface[this.length];
     }
 }
Beispiel #2
0
 private void RecurseInStackHeapToArray()
 {
     if (!this.enumerator.MoveNext())
     {
         this.array = new ExplosionHelper.Surface[this.length];
     }
     else
     {
         ExplosionHelper.Surface surface = this.enumerator.current;
         ExplosionHelper.Point.EnumeratorToArray enumeratorToArray = this;
         enumeratorToArray.length = enumeratorToArray.length + 1;
         this.RecurseInStackHeapToArray();
         ExplosionHelper.Point.EnumeratorToArray enumeratorToArray1 = this;
         int num  = enumeratorToArray1.length - 1;
         int num1 = num;
         enumeratorToArray1.length = num;
         this.array[num1]          = surface;
     }
 }