/// <summary> /// Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class. /// </summary> /// <param name="dictionary">A dictionary of items to copy from.</param> public ConcurrentObservableDictionary(IDictionary <TKey, TValue> dictionary) : base(dictionary) { this.locker = EnvironmentSettings.GenerateDefaultLocker(); }
/// <summary> /// Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class. /// </summary> /// <param name="equalityComparer">A comparer object to use for equality comparison.</param> public ConcurrentObservableDictionary(IEqualityComparer <TKey> equalityComparer) : base(equalityComparer) { this.locker = EnvironmentSettings.GenerateDefaultLocker(); }
internal void OnDeserializingMethod(StreamingContext context) => GlobalThreading.Interlocked.Exchange( ref this.locker, EnvironmentSettings.GenerateDefaultLocker());
/// <summary> /// Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class. /// </summary> public ConcurrentObservableDictionary() { this.locker = EnvironmentSettings.GenerateDefaultLocker(); }
/// <summary> /// Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class. /// </summary> /// <param name="capacity">The initial capacity of the dictionary.</param> public ConcurrentObservableDictionary(int capacity) : base(capacity) { this.locker = EnvironmentSettings.GenerateDefaultLocker(); }
/// <summary> /// Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class. /// </summary> /// <param name="context">The synchronization context top use when posting observable messages.</param> public ConcurrentObservableDictionary(GlobalThreading.SynchronizationContext context) : base(context) { this.locker = EnvironmentSettings.GenerateDefaultLocker(); }
/// <summary> /// Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class. /// </summary> /// <param name="suppressUndoable">If set to <see langword="true" />, suppresses undoable capabilities of this collection.</param> public ConcurrentObservableDictionary(bool suppressUndoable) : base(suppressUndoable) { this.locker = EnvironmentSettings.GenerateDefaultLocker(); }
/// <summary> /// Initializes a new instance of the <see cref="ConcurrentObservableList{T}" /> class. /// </summary> /// <param name="source">The source.</param> public ConcurrentObservableList(IEnumerable <T> source) : base(source) { this.locker = EnvironmentSettings.GenerateDefaultLocker(); }
/// <summary> /// Initializes a new instance of the <see cref="ConcurrentObservableQueue{T}" /> class. /// </summary> /// <param name="collection">A collection of items to copy from.</param> public ConcurrentObservableQueue(IEnumerable <T> collection) : base(collection) { this.locker = EnvironmentSettings.GenerateDefaultLocker(); }
/// <summary> /// Initializes a new instance of the <see cref="ObservableReadOnlyCompositeList{T}" /> class. /// </summary> public ObservableReadOnlyCompositeList() : base(new MultiListListAdapter <T>()) { this.locker = EnvironmentSettings.GenerateDefaultLocker(); }
/// <summary> /// Initializes a new instance of the <see cref="ConcurrentObservableMasterSlaveCollection{T}" /> class. /// </summary> /// <param name="suppressUndoable">If set to <see langword="true" />, suppresses undoable capabilities of this collection.</param> public ConcurrentObservableMasterSlaveCollection(bool suppressUndoable) : base(suppressUndoable) { this.locker = EnvironmentSettings.GenerateDefaultLocker(); }
/// <summary> /// Initializes a new instance of the <see cref="ConcurrentObservableMasterSlaveCollection{T}" /> class. /// </summary> public ConcurrentObservableMasterSlaveCollection() { this.locker = EnvironmentSettings.GenerateDefaultLocker(); }