batteries 1.0.20

dotnet add package batteries --version 1.0.20
                    
NuGet\Install-Package batteries -Version 1.0.20
                    
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="batteries" Version="1.0.20" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="batteries" Version="1.0.20" />
                    
Directory.Packages.props
<PackageReference Include="batteries" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add batteries --version 1.0.20
                    
#r "nuget: batteries, 1.0.20"
                    
#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.
#:package batteries@1.0.20
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=batteries&version=1.0.20
                    
Install as a Cake Addin
#tool nuget:?package=batteries&version=1.0.20
                    
Install as a Cake Tool

NuGet Version

This is a personal and opinionated collection of packages with useful code.

Sometimes you've got a new game to play and you realize: no batteries included 😩 <br/>From now on, you just need to use batteries!

Description

This package contains useful common extension methods for everyday use.

Extensions

Disposable

  • AddDisposableTo : Add a disposable to a composite disposable without any extra statement

Observable

missing extensions in system.reactive

  • DisposeMany : similar to SelectMany, append disposables to a serial disposable
  • LogAndRetry : better than retry, a retry extension that logs
  • LogAndRetryAfterDelay : even better than retry and log, a retry that log and wait a bit afterwards
  • RepeatAfterDelay : enhanced repeat extension
  • RetryAfterDelay : enhanced retry extension
  • RedoAfterDelay : enhanced redo extension

String

  • TrimAfter : trim everything after a special character

TimeSpan

  • AtLeast : sometimes you simply want to make sure nobody attempt to pass TimeSpan.Zero

Url

Xml

  • ExtractValueFromXmlQuery : simply extractor with xml document
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.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on batteries:

Package Downloads
batteries.Apache.NMS

opinionated collection of useful code

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.20 187 6/2/2025
1.0.19 137 6/2/2025
1.0.18 85 5/24/2025
1.0.17 225 5/13/2025
1.0.16 221 5/13/2025
1.0.15 123 1/30/2025
1.0.14 97 1/26/2025
1.0.13 97 1/25/2025
1.0.12 112 1/23/2025
1.0.11 101 1/22/2025
1.0.10 103 1/22/2025
1.0.9 81 1/18/2025
1.0.8 83 1/18/2025
1.0.7 79 1/17/2025
1.0.6 81 1/17/2025