Exemple #1
0
 // ------------------------ operator[] ------------------------------
 public CsvString.Value this[int InValueIx]
 {
     get
     {
         CsvString.Value v = null;
         if (CurrentValueNx == InValueIx)
         {
             v = CurrentValue.Clone( );
         }
         else
         {
             if ((CurrentValueNx >= InValueIx) ||
                 (CurrentValueNx == -1))
             {
                 BeginValue( );
             }
             while (true)
             {
                 v = NextValue( );
                 if (v == null)
                 {
                     break;
                 }
                 else if (CurrentValueNx == InValueIx)
                 {
                     break;
                 }
             }
         }
         return(v);
     }
 }