Esempio n. 1
0
 public object Peek(int index = 0)
 {
     if (index < 0 || Count <= index)
     {
         throw new InvalidOperationException("Noting to peek at.");
     }
     return(_storage.FindAtIndex(index)
            .Value);
 }
Esempio n. 2
0
 public virtual object this[int index] {
     get {
         return(_storage.FindAtIndex(index)
                .Value);
     }
     set {
         Ring.IndexedLink findResult = _storage.FindAtIndex(index);
         _storage.IncrementEditVersion();
         findResult.RingLink.Value = value;
     }
 }