Class
SynchronizedCollection<TItem>

Represents a thread-safe, synchronized collection that wraps an underlying source collection and provides additional functionality such as item transformation and disposal management.

Definition

Namespace:Telerik.Windows.Core

Assembly:Telerik.Windows.Scheduling.Core.dll

Type Parameters:

TItem

The type of items contained in the collection.

Syntax:

cs-api-definition
public class SynchronizedCollection<TItem> : BatchObservableCollection<TItem>, IList<TItem>, ICollection<TItem>, IList, ICollection, IReadOnlyList<TItem>, IReadOnlyCollection<TItem>, IEnumerable<TItem>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, IDisposable

Inheritance: objectCollection<TItem>ObservableCollection<TItem>BatchObservableCollection<TItem>SynchronizedCollection<TItem>

Implements: ICollectionICollection<TItem>IDisposableIEnumerableIEnumerable<TItem>IListIList<TItem>INotifyCollectionChangedINotifyPropertyChangedIReadOnlyCollection<TItem>IReadOnlyList<TItem>

Inherited Members BatchObservableCollection<TItem>.InsertMany(int, IEnumerable<TItem>)BatchObservableCollection<TItem>.RemoveMany(int, int)BatchObservableCollection<TItem>.OnCollectionChanged(NotifyCollectionChangedEventArgs)ObservableCollection<TItem>.Move(int, int)ObservableCollection<TItem>.ClearItems()ObservableCollection<TItem>.RemoveItem(int)ObservableCollection<TItem>.InsertItem(int, TItem)ObservableCollection<TItem>.SetItem(int, TItem)ObservableCollection<TItem>.MoveItem(int, int)ObservableCollection<TItem>.OnPropertyChanged(PropertyChangedEventArgs)ObservableCollection<TItem>.BlockReentrancy()ObservableCollection<TItem>.CheckReentrancy()ObservableCollection<TItem>.CollectionChangedObservableCollection<TItem>.PropertyChangedCollection<TItem>.Add(TItem)Collection<TItem>.Clear()Collection<TItem>.CopyTo(TItem[], int)Collection<TItem>.Contains(TItem)Collection<TItem>.GetEnumerator()Collection<TItem>.IndexOf(TItem)Collection<TItem>.Insert(int, TItem)Collection<TItem>.Remove(TItem)Collection<TItem>.RemoveAt(int)Collection<TItem>.CountCollection<TItem>.ItemsCollection<TItem>.this[int]

Methods

Create(IEnumerable, Func<object, TItem>, bool)

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")]
public static SynchronizedCollection<TItem> Create(IEnumerable sourceCollection, Func<object, TItem> wrapFunction, bool shouldDisposeItems = true)

Parameters

sourceCollection

IEnumerable

wrapFunction

Func<object, TItem>

shouldDisposeItems

bool

Returns

SynchronizedCollection<TItem>

Create(IEnumerable, Func<object, int, TItem>, Action<TItem>, bool)

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")]
public static SynchronizedCollection<TItem> Create(IEnumerable sourceCollection, Func<object, int, TItem> wrapFunction, Action<TItem> previewCollectionChangedAction = null, bool shouldDisposeItems = true)

Parameters

sourceCollection

IEnumerable

wrapFunction

Func<object, int, TItem>

previewCollectionChangedAction

Action<TItem>

shouldDisposeItems

bool

Returns

SynchronizedCollection<TItem>

Create<TSourceItem>(IEnumerable<TSourceItem>, Func<TSourceItem, TItem>, bool)

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")]
public static SynchronizedCollection<TItem> Create<TSourceItem>(IEnumerable<TSourceItem> sourceCollection, Func<TSourceItem, TItem> wrapFunction, bool shouldDisposeItems = true)

Parameters

sourceCollection

IEnumerable<TSourceItem>

wrapFunction

Func<TSourceItem, TItem>

shouldDisposeItems

bool

Returns

SynchronizedCollection<TItem>

Create<TSourceItem>(IEnumerable<TSourceItem>, Func<TSourceItem, int, TItem>, bool)

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")]
public static SynchronizedCollection<TItem> Create<TSourceItem>(IEnumerable<TSourceItem> sourceCollection, Func<TSourceItem, int, TItem> wrapFunction, bool shouldDisposeItems = true)

Parameters

sourceCollection

IEnumerable<TSourceItem>

wrapFunction

Func<TSourceItem, int, TItem>

shouldDisposeItems

bool

Returns

SynchronizedCollection<TItem>

Dispose()

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

Dispose(bool)

Declaration

cs-api-definition
protected virtual void Dispose(bool disposing)

Parameters

disposing

bool