예제 #1
0
 /// <inheritdoc/>
 public void Set_NoLock(int index, TValue value)
 {
     if (listener != null)
     {
         listener.OnRemove(index, list[index].GetValue_NoLock(index));
         listener.OnAdd(index, value);
     }
     list[index].SetValue_NoLock(index, value);
     id++;
 }
예제 #2
0
 /// <inheritdoc/>
 public TValue this[int index] {
     get { return(list[index].GetValue(index)); }
     set {
         if (listener != null)
         {
             listener.OnRemove(index, list[index].GetValue(index));
             listener.OnAdd(index, value);
         }
         list[index].SetValue(index, value);
         id++;
     }
 }