AnointedAutomation.Optimization 1.0.5

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

AnointedAutomation.Optimization

Jesus is King ✝️

Reusable optimization utilities for .NET: DataTable/DataReader conversion, CSV generation, string and array helpers, chunking, Roman numerals, JSON flattening, file management, and null-safe field accessors over System.Text.Json.JsonElement and MongoDB BsonDocument.

NuGet Downloads

Installation

dotnet add package AnointedAutomation.Optimization
  • Target framework: net10.0
  • Dependencies: MongoDB.Bson (used only by the BsonMap accessors), AnointedAutomation.Logging (conversion and delete failures are logged as Warnings)

Namespace: AnointedAutomation.Optimization.

What is inside

Type Purpose
Utility DataTable/DataReader to list mapping, CSV writers/readers, base64 encode/decode, random string generation, chunking (ToChunks), jagged array conversion, substring helpers, recursive delete.
ChunkDataReader An in-memory IDataReader over a list of rows, for feeding batched data into readers/exporters.
JsonFlattener Flattens nested JSON into a single-level dictionary of underscore-joined keys; dictionary to single-row DataTable. Built on the dependency-free System.Text.Json.
Roman Integer to/from Roman numerals (with overline multipliers for large numbers) and whole-word detection.
FileManagement Idempotent directory/file create, delete (with try variants), in-place line replacement, download-to-file.
FileComparator Byte-for-byte file compare and replace.
JsonElementExtensions Null-safe, strict and coercing accessors over JsonElement (strings, numbers, booleans, arrays, GraphQL connection enumeration).
BsonMap Null-safe, strict and coercing accessors over BsonDocument / BsonValue.

Quick start

using AnointedAutomation.Optimization;

// Chunk a big sequence.
foreach (var batch in bigList.ToChunks(500))
{
    Process(batch);
}

// Read a JSON field safely.
double? price = element.GetDoubleCoercedOrNull("price", NumberStyles.Any);

// Roman numerals.
string mmxxvi = Roman.IntegerToRoman(2026); // "MMXXVI"

License

MIT. See LICENSE. Copyright © Anointed Automation Corporation. Stewarded by Alexander Fields.

Support This Project

This library is free and open source. The best way to support the work is to shop with us:

Found a bug or have a request? Open an issue: https://github.com/AnointedAutomation/AnointedAutomation/issues

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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
1.0.5 90 11/6/2026
1.0.4 91 11/4/2026
1.0.3 115 10/26/2026
1.0.2 115 10/1/2026
1.0.1 119 10/1/2026
1.0.0 109 9/30/2026