LazyApiPack.Collections 0.1.0

dotnet add package LazyApiPack.Collections --version 0.1.0                
NuGet\Install-Package LazyApiPack.Collections -Version 0.1.0                
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="LazyApiPack.Collections" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LazyApiPack.Collections --version 0.1.0                
#r "nuget: LazyApiPack.Collections, 0.1.0"                
#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 LazyApiPack.Collections as a Cake Addin
#addin nuget:?package=LazyApiPack.Collections&version=0.1.0

// Install LazyApiPack.Collections as a Cake Tool
#tool nuget:?package=LazyApiPack.Collections&version=0.1.0                

About this pack

This package provides extensions for collections and special collection types.

Special Collections

BoolList

This class provides a list of named bools to be evaluated as a boolean.

Example:

var b1 = new BoolList(BoolListMode.AllTrue);
b1["View Loaded"] = false;
b1["Model present"] = true;

Console.WriteLine("Value: " + b1);
Console.WriteLine("Reason:\n" + b1.ToString());

Output:

Value: false Reason: Value: false Mode: AllTrue Values: View Loaded: false Model Present: true

Modes

AllTrue: Result is only true, if all items in the list are True ⇒ Logical And AtLeastOne: Result is true, if the list contains at least one item that is true ⇒ Logical Or ExactlyOne: Result is only true, if exactly one item in the list is true ⇒ Logical Xor.

Extensions

Array Extensions

Append

Adds an element to an array and resizes the array.

Insert

Inserts an element to an array (resizes the array if the index is Array.Length)

RemoveRange

Removes a range of elements and resizes the array.

Dictionary Extensions

Upsert

Adds a key to a dictionary if it does not exist or updates its value.

Collection Extensions

Upsert

Provides a function to easily add unique items to a collection.

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

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on LazyApiPack.Collections:

Package Downloads
LazyApiPack.Mvvm

Provides an MVVM pattern for applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.0 225 9/3/2023
0.0.4 499 3/3/2023
0.0.3 298 1/31/2023
0.0.2 284 1/31/2023
0.0.1 304 12/14/2022

Allows null values now for value in Upsert method.