From c149070823342130c02de4ea3ae6195c649031d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20ANDRE=20=28E104915=29?= Date: Thu, 10 Oct 2024 19:36:42 +0200 Subject: [PATCH] feat: Add ExtendedObservableCollection and update MyNet.Utilities Updated MyNet.Utilities package to version 5.2.1-pre.6 Added a new class ExtendedObservableCollection in ExtendedObservableCollection.cs, inheriting from OptimizedObservableCollection and implementing IObservableCollection and IExtendedList interfaces. --- .../ExtendedObservableCollection.cs | 19 +++++++++++++++++++ .../MyNet.DynamicData.Extensions.csproj | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/MyNet.DynamicData.Extensions/ExtendedObservableCollection.cs diff --git a/src/MyNet.DynamicData.Extensions/ExtendedObservableCollection.cs b/src/MyNet.DynamicData.Extensions/ExtendedObservableCollection.cs new file mode 100644 index 0000000..67b8dde --- /dev/null +++ b/src/MyNet.DynamicData.Extensions/ExtendedObservableCollection.cs @@ -0,0 +1,19 @@ +// Copyright (c) Stéphane ANDRE. All Right Reserved. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; +using DynamicData; +using DynamicData.Binding; +using MyNet.Utilities.Collections; + +namespace MyNet.DynamicData.Extensions +{ + public class ExtendedObservableCollection : OptimizedObservableCollection, IObservableCollection, IExtendedList + { + public ExtendedObservableCollection() : base() { } + + public ExtendedObservableCollection(List list) : base(list) { } + + public ExtendedObservableCollection(IEnumerable collection) : base(collection) { } + } +} diff --git a/src/MyNet.DynamicData.Extensions/MyNet.DynamicData.Extensions.csproj b/src/MyNet.DynamicData.Extensions/MyNet.DynamicData.Extensions.csproj index 5b67330..3cbda87 100644 --- a/src/MyNet.DynamicData.Extensions/MyNet.DynamicData.Extensions.csproj +++ b/src/MyNet.DynamicData.Extensions/MyNet.DynamicData.Extensions.csproj @@ -8,7 +8,7 @@ - +