LazyApiPack.Collections
0.0.4
See the version list below for details.
dotnet add package LazyApiPack.Collections --version 0.0.4
NuGet\Install-Package LazyApiPack.Collections -Version 0.0.4
<PackageReference Include="LazyApiPack.Collections" Version="0.0.4" />
paket add LazyApiPack.Collections --version 0.0.4
#r "nuget: LazyApiPack.Collections, 0.0.4"
// Install LazyApiPack.Collections as a Cake Addin #addin nuget:?package=LazyApiPack.Collections&version=0.0.4 // Install LazyApiPack.Collections as a Cake Tool #tool nuget:?package=LazyApiPack.Collections&version=0.0.4
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.
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. |
-
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.
Allows null values now for value in Upsert method.