SimpleSynchronizedCollection<T> Class
Provides a thread-safe generic collection that provides notifications when items are added or removed.
public class SimpleSynchronizedCollection<T> : SimpleObservableCollection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : class
- Type Parameters:
-
T
-The type of collection item.
- Inheritance:
- Object Collection<T> SimpleObservableCollection<T> Object
Constructors
SimpleSynchronizedCollection()
public SimpleSynchronizedCollection()
Methods
ClearItems()
Removes all items from the collection.
protected override void ClearItems()
InsertItem(Int32, T)
Inserts an item into the collection at the specified index.
protected override void InsertItem(int index, T item)
Parameter | Type | Description |
---|---|---|
index | Int32 | The index at which to insert the item. |
item | T | The item to insert. |
RemoveItem(Int32)
Removes the item at the specified index.
protected override void RemoveItem(int index)
Parameter | Type | Description |
---|---|---|
index | Int32 | The index of the item to remove. |
SetItem(Int32, T)
Replaces the item at the specified index.
protected override void SetItem(int index, T item)
Parameter | Type | Description |
---|---|---|
index | Int32 | The index of the item to replace. |
item | T | The item with which to replace. |
Inherited Members
- SimpleObservableCollection<T>.BlockReentrancy()
- SimpleObservableCollection<T>.CheckReadOnly()
- SimpleObservableCollection<T>.CheckReentrancy()
- SimpleObservableCollection<T>.OnItemAdded(Int32, T)
- SimpleObservableCollection<T>.OnItemAdding(Int32, T)
- SimpleObservableCollection<T>.OnItemRemoved(Int32, T)
- SimpleObservableCollection<T>.OnItemRemoving(Int32, T)
- SimpleObservableCollection<T>.IsReadOnly
- SimpleObservableCollection<T>.ItemAdding
- SimpleObservableCollection<T>.ItemAdded
- SimpleObservableCollection<T>.ItemRemoving
- SimpleObservableCollection<T>.ItemRemoved
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()