Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.29 KB | None | 0 0
  1.  public static Iterable Test(String paramString)
  2.   {
  3.     return new .Test.d__0();
  4.   }
  5.  
  6.   private final class $Test$d__0
  7.     implements Iterator, Iterable
  8.   {
  9.     private String @Current;
  10.     private int @State;
  11.     private int @HaveNext;
  12.  
  13.     public final void remove()
  14.     {
  15.     }
  16.  
  17.     public $Test$d__0()
  18.     {
  19.     }
  20.  
  21.     public final boolean MoveNext()
  22.     {
  23.       if (this.@State != 0) { if (this.@State != 1) { if (this.@State == 2) break label75; if (this.@State == 3) break label93; return false; }  } else {
  24.         this.@State = -1; this.@State = 1; this.@Current = "first"; return true; } this.@State = -1; this.@State = 2;
  25.       this.@Current = ConsoleApp.this; return true; label75: this.@State = -1; this.@State = 3;
  26.       this.@Current = "last"; return true; label93: this.@State = -1; return false;
  27.     }
  28.  
  29.     public final boolean hasNext()
  30.     {
  31.       if ((this.@HaveNext == 0 ? 1 : 0) != 0)
  32.         if (MoveNext())
  33.           this.@HaveNext = 1;
  34.         else
  35.           this.@HaveNext = 2;
  36.       return this.@HaveNext == 1;
  37.     }
  38.  
  39.     public final Iterator iterator()
  40.     {
  41.       return this;
  42.     }
  43.  
  44.     public final Object next()
  45.     {
  46.       if (!hasNext())
  47.         throw new NoSuchElementException();
  48.       this.@HaveNext = 0;
  49.       return this.@Current;
  50.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement