ClassSynchronizedCollection<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:
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:
Inherited Members
Methods
Create(IEnumerable, Func<object, TItem>, bool)
Declaration
[SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")]
public static SynchronizedCollection<TItem> Create(IEnumerable sourceCollection, Func<object, TItem> wrapFunction, bool shouldDisposeItems = true)
Parameters
sourceCollection
wrapFunction
shouldDisposeItems
Returns
SynchronizedCollection<TItem>
Create(IEnumerable, Func<object, int, TItem>, Action<TItem>, bool)
Declaration
[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
wrapFunction
previewCollectionChangedAction
Action<TItem>
shouldDisposeItems
Returns
SynchronizedCollection<TItem>
Create<TSourceItem>(IEnumerable<TSourceItem>, Func<TSourceItem, TItem>, bool)
Declaration
[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
Returns
SynchronizedCollection<TItem>
Create<TSourceItem>(IEnumerable<TSourceItem>, Func<TSourceItem, int, TItem>, bool)
Declaration
[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
shouldDisposeItems
Returns
SynchronizedCollection<TItem>
Dispose()
Declaration
public void Dispose()
Implements
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
disposing