/// <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++; }
/// <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++; } }