ToolBX.Collections.ObservableList
1.0.0
See the version list below for details.
dotnet add package ToolBX.Collections.ObservableList --version 1.0.0
NuGet\Install-Package ToolBX.Collections.ObservableList -Version 1.0.0
<PackageReference Include="ToolBX.Collections.ObservableList" Version="1.0.0" />
<PackageVersion Include="ToolBX.Collections.ObservableList" Version="1.0.0" />
<PackageReference Include="ToolBX.Collections.ObservableList" />
paket add ToolBX.Collections.ObservableList --version 1.0.0
#r "nuget: ToolBX.Collections.ObservableList, 1.0.0"
#addin nuget:?package=ToolBX.Collections.ObservableList&version=1.0.0
#tool nuget:?package=ToolBX.Collections.ObservableList&version=1.0.0
Collections
Modern and straightforward .NET Collections
ObservableList
An observable, dynamic one-dimensional array.
Ever wish C#'s list would tell you if it has been modified in any way without having to clumsily wrap it like so
private readonly List<Thing> _things = new List<Thing>();
public void Add(Thing thing)
{
_things.Add(thing);
DoStuff();
}
This is where ObservableList shines the brightest.
private readonly ObservableList<Thing> _things = new ObservableList<Thing>();
public void SomeInitializationMethodSomewhere()
{
_things.CollectionChanged += OnThingsChanged;
}
//This gets called whenever the ObservableList is changed be it through Add, Insert, Remove, RemoveAt, Clear, etc...
private void OnThingsChanged(object sender, CollectionChangeEventArgs<Thing> args)
{
foreach (var item in args.OldValues)
{
DoStuffWithOldValues();
}
foreach (var item in args.NewValues)
{
DoStuffWithNewValues();
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Collections.Common (>= 1.0.0)
- ToolBX.Reflection4Humans.Extensions (>= 1.0.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on ToolBX.Collections.ObservableList:
Package | Downloads |
---|---|
ToolBX.Collections.Inventory
A collection of stackable items. |
|
ToolBX.Spritebound
Spritesheet and animation management for sprite-based projects. |
|
ToolBX.Collections.Caching
Collections that are limited to a specified size in order to be used as object caches. |
|
ToolBX.Collections.UnitTesting
Tester classes and extensions to help with unit testing ToolBX.Collections. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
3.0.0 | 484 | 9/27/2024 |
3.0.0-beta1 | 123 | 9/23/2024 |
2.2.0 | 472 | 1/13/2024 |
2.2.0-beta2 | 225 | 1/7/2024 |
2.2.0-beta1 | 181 | 1/4/2024 |
2.0.4 | 391 | 6/19/2023 |
2.0.1 | 525 | 4/27/2023 |
2.0.0 | 650 | 11/11/2022 |
2.0.0-beta1 | 372 | 9/22/2022 |
1.1.0 | 585 | 9/16/2022 |
1.1.0-beta2 | 668 | 7/30/2022 |
1.1.0-beta1 | 211 | 7/30/2022 |
1.0.5 | 903 | 7/15/2022 |
1.0.4 | 859 | 7/11/2022 |
1.0.3 | 762 | 4/23/2022 |
1.0.2 | 751 | 3/1/2022 |
1.0.1 | 735 | 2/28/2022 |
1.0.0 | 324 | 1/8/2022 |