| | | 1 | | // ----------------------------------------------------------------------- |
| | | 2 | | // <copyright file="ExtendedObservableCollection.cs" company="Stéphane ANDRE"> |
| | | 3 | | // Copyright (c) Stéphane ANDRE. All rights reserved. |
| | | 4 | | // </copyright> |
| | | 5 | | // ----------------------------------------------------------------------- |
| | | 6 | | |
| | | 7 | | using System.Collections.Generic; |
| | | 8 | | using System.Collections.ObjectModel; |
| | | 9 | | using DynamicData; |
| | | 10 | | using DynamicData.Binding; |
| | | 11 | | using MyNet.Collections; |
| | | 12 | | |
| | | 13 | | namespace MyNet.Observable.Collections; |
| | | 14 | | |
| | | 15 | | /// <summary> |
| | | 16 | | /// Represents an extended observable collection that provides additional functionalities and optimizations for managing |
| | | 17 | | /// </summary> |
| | | 18 | | /// <typeparam name="T">The type of elements in the collection.</typeparam> |
| | | 19 | | public class ExtendedObservableCollection<T> : ObservableRangeCollection<T>, IObservableCollection<T>, IExtendedList<T> |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the <see cref="ExtendedObservableCollection{T}"/> class. |
| | | 23 | | /// </summary> |
| | 6 | 24 | | public ExtendedObservableCollection() { } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Initializes a new instance of the <see cref="ExtendedObservableCollection{T}"/> class with initial capacity. |
| | | 28 | | /// </summary> |
| | | 29 | | /// <param name="capacity">The initial capacity to pre-allocate.</param> |
| | | 30 | | public ExtendedObservableCollection(int capacity) |
| | 0 | 31 | | : base(capacity) { } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Initializes a new instance of the <see cref="ExtendedObservableCollection{T}"/> class that contains elements cop |
| | | 35 | | /// </summary> |
| | | 36 | | /// <param name="collection">The collection from which the elements are copied.</param> |
| | | 37 | | public ExtendedObservableCollection(Collection<T> collection) |
| | 6 | 38 | | : base(collection) { } |
| | | 39 | | |
| | | 40 | | /// <summary> |
| | | 41 | | /// Initializes a new instance of the <see cref="ExtendedObservableCollection{T}"/> class that contains elements cop |
| | | 42 | | /// </summary> |
| | | 43 | | /// <param name="collection">The collection from which the elements are copied.</param> |
| | | 44 | | public ExtendedObservableCollection(IEnumerable<T> collection) |
| | 0 | 45 | | : base(collection) { } |
| | | 46 | | } |
| | | 47 | | |