BruSoftware.SharedServices 2.0.0

dotnet add package BruSoftware.SharedServices --version 2.0.0
                    
NuGet\Install-Package BruSoftware.SharedServices -Version 2.0.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="BruSoftware.SharedServices" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BruSoftware.SharedServices" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BruSoftware.SharedServices" />
                    
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 BruSoftware.SharedServices --version 2.0.0
                    
#r "nuget: BruSoftware.SharedServices, 2.0.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.
#:package BruSoftware.SharedServices@2.0.0
                    
#: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=BruSoftware.SharedServices&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=BruSoftware.SharedServices&version=2.0.0
                    
Install as a Cake Tool

BruSoftware.SharedServices

A comprehensive collection of shared services and utilities for .NET applications.

Features

  • Async Helpers: Utilities for asynchronous programming
  • Configuration Management: JSON-based configuration with custom resolvers
  • Extension Methods: Extensions for common types (DateTime, String, Collections, etc.)
  • Attributes: Custom attributes for PropertyGrid and serialization
  • Data Structures: CircularBuffer, BitArrayFast, TreeNode
  • Utilities: Math utilities, XIRR calculations, Fibonacci, Permutations
  • Service Locator: Dependency injection helper
  • Converters: Type converters and JSON converters

Installation

dotnet add package BruSoftware.SharedServices

Usage

using BruSoftware.SharedServices;
using BruSoftware.SharedServices.ExtensionMethods;

// Use extension methods
var rounded = myDouble.RoundToSignificantDigits(3);
var isWeekend = DateTime.Now.IsWeekend();

// Use utilities
var fibonacci = Fibonacci.GetNumber(10);
var xirr = XIRR.Calculate(cashFlows, dates);

Requirements

  • .NET 9.0 or higher
  • x64 platform

Dependencies

  • Microsoft.CSharp
  • Microsoft.Extensions.Configuration
  • Newtonsoft.Json
  • NLog
  • BruSoftware.ListMmf

License

MIT License

Contributing

Contributions are welcome! Please submit pull requests or open issues on GitHub.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 251 8/19/2025 2.0.0 is deprecated because it is no longer maintained.
1.0.4 288 8/10/2025
1.0.3 177 8/10/2025