Skip to content

Commit

Permalink
feat: Add ExtendedObservableCollection and update MyNet.Utilities
Browse files Browse the repository at this point in the history
Updated MyNet.Utilities package to version 5.2.1-pre.6

Added a new class ExtendedObservableCollection<T> in
ExtendedObservableCollection.cs, inheriting from
OptimizedObservableCollection<T> and implementing
IObservableCollection<T> and IExtendedList<T> interfaces.
  • Loading branch information
Stéphane ANDRE (E104915) committed Oct 10, 2024
1 parent fa37341 commit c149070
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions src/MyNet.DynamicData.Extensions/ExtendedObservableCollection.cs
Original file line number Diff line number Diff line change
@@ -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<T> : OptimizedObservableCollection<T>, IObservableCollection<T>, IExtendedList<T>
{
public ExtendedObservableCollection() : base() { }

public ExtendedObservableCollection(List<T> list) : base(list) { }

public ExtendedObservableCollection(IEnumerable<T> collection) : base(collection) { }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="DynamicData" Version="9.0.4" />
<PackageReference Include="MyNet.Utilities" Version="5.0.0" />
<PackageReference Include="MyNet.Utilities" Version="5.2.1-pre.6" />
</ItemGroup>

</Project>

0 comments on commit c149070

Please sign in to comment.