Nglib 1.1.8

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

NgLib - General C# Library

Nglib is a C# .NET library containing useful components and helpers for modern applications.

Open-source (MIT) - General and Common .NET Helpers, Extensions, Data Access, Dev Components, and more.

📦 Packages

Package Description
Nglib Nglib Core abstractions, basic tools, zero dependencies
Nglib.Data Nglib.Data Data access components, DataPO ORM, providers
Nglib.Formula Nglib.Formula Dynamic formula evaluation engine

🚀 Installation

dotnet add package Nglib

⚡ Features

  • Data Accessors - Flexible data access patterns with IDataAccessor interface
  • Collections Tools - Extensions for Dictionary, List and collection manipulations
  • String Tools - Advanced string manipulation and formatting utilities
  • Date Tools - Date/time parsing, formatting and calculations
  • Number Tools - Number formatting, conversion and validation
  • Key Tools - Unique key generation and manipulation
  • Reflection Tools - Simplified reflection operations
  • Validation Tools - Model validation with ValidateModel pattern
  • HTTP Client Tools - HTTP client helpers with token management
  • Formula Engine - Expression parser and evaluator (separate package)

📖 Quick Examples

Data Accessor

using Nglib.DATA.ACCESSORS;

var data = new DictionaryData();
data.SetValue("name", "John");
data.SetValue("age", 30);

string name = data.GetValue<string>("name");
int age = data.GetValue<int>("age");

String Tools

using Nglib.FORMAT;

string random = StringTools.RandomString(12);
string cleaned = StringTools.CleanString("Hello  World!");
string key = KeyTools.SanitizeKey("My-Key_123"); // "mykey123"

Validation

using Nglib.APP.DIAG;

var result = ValidateModel.Success;
if (value < 0)
    result.SetInvalid("Value must be positive");

result.EnsureIsValid(); // Throws if invalid

📚 Documentation

Full documentation: https://github.com/NueGy/NgLib

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Nglib:

Package Downloads
Nglib.Data

Data access components for databases. Includes generic database connectors, query builder, and DataSet manipulation tools.

Nglib.Formula

Formula parser and expression evaluator. String Format. Dynamic calculation engine with parameter support, built-in functions (math, string, date, logical), custom operators, and optimized for high-performance scenarios.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.8 126 5/22/2026
1.1.7-beta 220 11/23/2025
1.1.6-beta 205 4/28/2024
1.0.13-beta 346 10/8/2021