In This Article

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

Extension Methods