Frank.Collections 0.1.4-preview

This is a prerelease version of Frank.Collections.
dotnet add package Frank.Collections --version 0.1.4-preview
NuGet\Install-Package Frank.Collections -Version 0.1.4-preview
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Frank.Collections" Version="0.1.4-preview" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Frank.Collections --version 0.1.4-preview
#r "nuget: Frank.Collections, 0.1.4-preview"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Frank.Collections as a Cake Addin
#addin nuget:?package=Frank.Collections&version=0.1.4-preview&prerelease

// Install Frank.Collections as a Cake Tool
#tool nuget:?package=Frank.Collections&version=0.1.4-preview&prerelease

Frank.Collections

2D arrays, observables and other specialized collections

2D Arrays

Array2D

A 2D array that allows for serialization and deserialization to and from JSON and its own string representation with the use of the Array2DSerializer static class.

var array = new Array2D<int>(2, 2);
array[0, 0] = 1;
array[0, 1] = 2;
array[1, 0] = 3;
array[1, 1] = 4;

foreach (var item in array)
{
    Console.WriteLine(item);
}

Observables

ObservableList

A list that can be observed for changes, such as adding and removing items, but also the property values of the items themselves. Warning: This is a very expensive feature, so use it sparingly, so if you don't need it, use the regular List class.

var list = new ObservableList<int>();
list.CollectionChanged += (sender, e) => Console.WriteLine($"Item added: {e.Item}");
list.Add(1);
list.Add(2);
list.Add(3);
list.Add(4);

foreach (var item in list)
{
    Console.WriteLine(item);
}

Installation

NuGet

dotnet add package Frank.Collections

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.4-preview 134 12/28/2023
0.1.3-preview 67 12/28/2023
0.1.2-preview 64 12/27/2023
0.1.1-preview 56 12/29/2023