ToolBX.OPEX
2.0.0-beta4
See the version list below for details.
dotnet add package ToolBX.OPEX --version 2.0.0-beta4
NuGet\Install-Package ToolBX.OPEX -Version 2.0.0-beta4
<PackageReference Include="ToolBX.OPEX" Version="2.0.0-beta4" />
paket add ToolBX.OPEX --version 2.0.0-beta4
#r "nuget: ToolBX.OPEX, 2.0.0-beta4"
// Install ToolBX.OPEX as a Cake Addin #addin nuget:?package=ToolBX.OPEX&version=2.0.0-beta4&prerelease // Install ToolBX.OPEX as a Cake Tool #tool nuget:?package=ToolBX.OPEX&version=2.0.0-beta4&prerelease
OPEX
OverPowered Enumerable eXtensions - It makes your collections OP AF!
Adds the following methods (and more) to basic .NET collections :
-IsNullOrEmpty : So you never have to check both all the time! -RemoveAll : Don't just want to remove the first item? We got you! -IndexesOf : Ever wanted to get all indexes of an occurence inside your collection? We got you again! -Sawp : Want to swap two indexes together? list.Swap(5, 1)! WE TOTALLY GOT YOU! -Uniform & UniformBy : Similar to First() and Single() except that this one expects a collection or properties to all be equal so it doesn't matter which one you get. -TryGetSingle : Like Single() except that it returns the result in a TryGetResult<T> which clearly indicates whether or not a "default" result is the outcome of a failure -TryGetFirst : Like TryGetSingle() except that it only returns the first occurence -TryGetLast : Should be self-explanatory by now
OPEX even provides methods that add randomness to collections such as :
-Shuffle -GetRandom -GetRandomIndex -GetManyRandoms
If you are already familiar with ToolBX.Collections then the extension methods will be natural to use for you. We like to throw a lot but we also provide "Try" overloads for the lazy devs out there.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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. |
-
net7.0
- ToolBX.OutWarden (>= 2.0.0-beta1)
- ToolBX.Reflection4Humans.Extensions (>= 2.0.0-beta1)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on ToolBX.OPEX:
Package | Downloads |
---|---|
ToolBX.Collections.Common
Common types for the ToolBX.Collections namespaces. This package should not be referenced by your project directly. |
|
ToolBX.Collections.Grid
An observable, dynamic two-dimensional array. |
|
ToolBX.Dummies
A lightweight object generation framework for unit testing purposes |
|
ToolBX.AwesomeMarkup
Extracts any kind of markup information from a string of characters. |
|
ToolBX.SimpleRepositories.Bundles
Base classes and interfaces for setting up repositories that query bundles of entities. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.1 | 4,019 | 9/26/2024 |
3.0.0-beta1 | 210 | 9/23/2024 |
2.2.0 | 7,551 | 1/13/2024 |
2.2.0-beta3 | 331 | 1/7/2024 |
2.2.0-beta2 | 277 | 12/27/2023 |
2.2.0-beta1 | 90 | 12/20/2023 |
2.0.3 | 10,325 | 6/19/2023 |
2.0.2 | 1,208 | 4/24/2023 |
2.0.1 | 159 | 4/24/2023 |
2.0.0 | 764 | 11/10/2022 |
2.0.0-beta4 | 155 | 10/18/2022 |
2.0.0-beta3 | 161 | 10/3/2022 |
2.0.0-beta1 | 343 | 9/21/2022 |
1.0.6 | 1,643 | 10/18/2022 |
1.0.5 | 500 | 10/3/2022 |
1.0.4 | 645 | 9/7/2022 |
1.0.3 | 891 | 7/28/2022 |
1.0.2 | 448 | 7/5/2022 |
1.0.1 | 415 | 7/4/2022 |
1.0.0 | 538 | 6/27/2022 |