BinaryLibs.Utils
0.161.0
dotnet add package BinaryLibs.Utils --version 0.161.0
NuGet\Install-Package BinaryLibs.Utils -Version 0.161.0
<PackageReference Include="BinaryLibs.Utils" Version="0.161.0" />
<PackageVersion Include="BinaryLibs.Utils" Version="0.161.0" />
<PackageReference Include="BinaryLibs.Utils" />
paket add BinaryLibs.Utils --version 0.161.0
#r "nuget: BinaryLibs.Utils, 0.161.0"
#:package BinaryLibs.Utils@0.161.0
#addin nuget:?package=BinaryLibs.Utils&version=0.161.0
#tool nuget:?package=BinaryLibs.Utils&version=0.161.0
BinaryLibs.Utils
Purpose
General-purpose .NET Standard utility primitives shared by the BinaryLibs packages. Use this library for validation, retries, time abstraction, logging, serialization, object reuse, profiling, filesystem helpers, random values, and result handling.
Available API endpoints
Assert: validate nullability, collections, numeric finiteness, paths, filenames, and arbitrary conditions.Error: throw factory-created exceptions and retry actions or functions with fixed or custom retry policies.Extensions: generate bounded random values, choose weighted values, round decimals and timestamps, and vary time spans.FileSystem: copy directory trees and calculate relative paths.IClock,StandardClock,InstantClock: abstract real time or use a deterministic manually advancing clock.Log: register listeners and write trace, debug, informational, warning, error, and critical messages.ObjectPool: reuse objects by runtime type with optional reset callbacks.Profiler: measure named regions and retrieve call counts and elapsed time.RandomHelper: obtain a thread-local shared random generator.Result<TValue, TError>: represent success or error without exceptions for expected failures.Runner: schedule background jobs against an injectable clock.SerializerandSerializerOptions: serialize JSON to strings, streams, or files, with optional GZip, reference preservation, type names, and integer enums.
Agent guidance
Prefer IClock when code needs deterministic tests. Use Result for expected outcomes and Error.Retry for transient failures. StandardClock.Sleep blocks; InstantClock.Sleep advances simulated time.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Bcl.HashCode (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (10)
Showing the top 5 NuGet packages that depend on BinaryLibs.Utils:
| Package | Downloads |
|---|---|
|
BinaryLibs.Networking
Package Description |
|
|
BinaryLibs.Storage
Package Description |
|
|
BinaryLibs.Optimization
Package Description |
|
|
BinaryLibs.Repository
Package Description |
|
|
BinaryLibs.Security
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.161.0 | 57 | 8/31/2026 |
| 0.160.0 | 251 | 8/30/2026 |
| 0.159.0 | 318 | 8/26/2026 |
| 0.158.0 | 373 | 8/26/2026 |
| 0.157.0 | 446 | 8/23/2026 |
| 0.156.0 | 90 | 8/17/2026 |
| 0.155.0 | 689 | 8/16/2026 |
| 0.154.0 | 552 | 8/16/2026 |
| 0.153.0 | 408 | 8/16/2026 |
| 0.152.0 | 408 | 8/16/2026 |
| 0.151.0 | 416 | 8/15/2026 |
| 0.150.0 | 412 | 8/15/2026 |
| 0.149.0 | 413 | 8/14/2026 |
| 0.148.0 | 434 | 8/14/2026 |
| 0.147.0 | 423 | 8/13/2026 |
| 0.146.0 | 88 | 8/13/2026 |
| 0.145.0 | 655 | 8/12/2026 |
| 0.144.0 | 516 | 8/11/2026 |
| 0.143.0 | 437 | 8/11/2026 |
| 0.142.0 | 429 | 8/9/2026 |