Advertisement
Guest User

Untitled

a guest
Jan 20th, 2016
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.81 KB | None | 0 0
  1. internal class TxtProperty : IEnumerable
  2.         {
  3.             private SortedList<int , TxtReader.TxtPropertyIndex> fd0000 = new SortedList<int , TxtReader.TxtPropertyIndex>( );
  4.            
  5.             private string fd0001;
  6.  
  7.             public TxtProperty ( string name )
  8.             {
  9.                 this.Name = name;
  10.             }
  11.  
  12.             public void AddIndex ( TxtReader.TxtPropertyIndex propIndex )
  13.             {
  14.                 this.fd0000.Add( propIndex.Index , propIndex );
  15.             }
  16.  
  17.             public IEnumerator GetEnumerator ( )
  18.             {
  19.                 return new scl0000( 0 ) { fdXX4__this = this };
  20.             }
  21.  
  22.             public int [ ] GetIndexArray ( )
  23.             {
  24.                 return this.fd0000.Keys.ToArray<int>( );
  25.             }
  26.  
  27.             public bool HaveIndex ( int index )
  28.             {
  29.                 return this.fd0000.ContainsKey( index );
  30.             }
  31.  
  32.             public TxtReader.TxtPropertyIndex this [ int index ]
  33.             {
  34.                 get
  35.                 {
  36.                     return this.fd0000 [ index ];
  37.                 }
  38.             }
  39.  
  40.             public string Name
  41.             {
  42.                
  43.                 get
  44.                 {
  45.                     return this.fd0001;
  46.                 }
  47.                
  48.                 private set
  49.                 {
  50.                     this.fd0001 = value;
  51.                 }
  52.             }
  53.  
  54.            
  55.             private sealed class scl0000 : IDisposable , IEnumerator<object> , IEnumerator
  56.             {
  57.                 private object fd0000;
  58.                 private int fd0001;
  59.                 public KeyValuePair<int , TxtReader.TxtPropertyIndex> fdXpropIndexX5__1;
  60.                 public TxtReader.TxtProperty fdXX4__this;
  61.                 public IEnumerator<KeyValuePair<int , TxtReader.TxtPropertyIndex>> fdXX7__wrap2;
  62.  
  63.                
  64.                 public scl0000 ( int mdXX1__state )
  65.                 {
  66.                     this.fd0001 = mdXX1__state;
  67.                 }
  68.  
  69.                 private void mdXXm__Finally3 ( )
  70.                 {
  71.                     this.fd0001 = -1;
  72.                     if ( this.fdXX7__wrap2 != null )
  73.                     {
  74.                         this.fdXX7__wrap2.Dispose( );
  75.                     }
  76.                 }
  77.  
  78.                 bool IEnumerator.MoveNext ( )
  79.                 {
  80.                     try
  81.                     {
  82.                         switch ( this.fd0001 )
  83.                         {
  84.                             case 0:
  85.                                 this.fd0001 = -1;
  86.                                 this.fdXX7__wrap2 = this.fdXX4__this.fd0000.GetEnumerator( );
  87.                                 this.fd0001 = 1;
  88.                                 break;
  89.  
  90.                             case 2:
  91.                                 this.fd0001 = 1;
  92.                                 break;
  93.  
  94.                             default:
  95.                                 goto Label_005B;
  96.                         }
  97.                         if ( this.fdXX7__wrap2.MoveNext( ) )
  98.                         {
  99.                             goto Label_005F;
  100.                         }
  101.                         this.mdXXm__Finally3( );
  102. Label_005B:
  103.                         return false;
  104. Label_005F:
  105.                         this.fdXpropIndexX5__1 = this.fdXX7__wrap2.Current;
  106.                         this.fd0000 = this.fdXpropIndexX5__1.Value;
  107.                         this.fd0001 = 2;
  108.                         return true;
  109.                     }
  110.                     catch
  111.                     {
  112.                         mdXXm__Finally3( );
  113.                     }
  114.  
  115.                     return false;
  116.                 }
  117.  
  118.                
  119.                 void IEnumerator.Reset ( )
  120.                 {
  121.                     throw new NotSupportedException( );
  122.                 }
  123.  
  124.                 void IDisposable.Dispose ( )
  125.                 {
  126.                     switch ( this.fd0001 )
  127.                     {
  128.                         case 1:
  129.                         case 2:
  130.                             try
  131.                             {
  132.                             }
  133.                             finally
  134.                             {
  135.                                 this.mdXXm__Finally3( );
  136.                             }
  137.                             return;
  138.                     }
  139.                 }
  140.  
  141.                 object IEnumerator<object>.Current
  142.                 {
  143.                    
  144.                     get
  145.                     {
  146.                         return this.fd0000;
  147.                     }
  148.                 }
  149.  
  150.                 object IEnumerator.Current
  151.                 {
  152.                    
  153.                     get
  154.                     {
  155.                         return this.fd0000;
  156.                     }
  157.                 }
  158.             }
  159.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement