Esempio n. 1
0
 A IReadOnlyList <A> .this[int index]
 {
     get
     {
         if (index < 0 || index >= Root.Count)
         {
             throw new IndexOutOfRangeException();
         }
         return(ListModule.GetItem(Root, Rev ? Count - index - 1 : index));
     }
 }
Esempio n. 2
0
 public A this[int index]
 {
     get
     {
         if (index < 0 || index >= Root.Count)
         {
             throw new IndexOutOfRangeException();
         }
         return(ListModule.GetItem(Root, Value.Rev ? Count - index - 1 : index));
     }
 }