PGMS.Utils 1.0.0

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

PGMS.Utils

Lightweight .NET utility toolkit providing common helpers, extensions, models and security utilities used across PGMS projects.

Features

Extensions

  • StringExtensions — common string manipulation helpers.
  • DictionaryExtensions — dictionary utility methods.
  • ContainerExtensions — Autofac DI container helpers.

Helpers

  • FilterHelper & PredicateBuilder — build and combine LINQ Expression<Func<T, bool>> filters dynamically (AND / OR).
  • ExcelHelperCore & DynamicExcelExport — Excel export utilities (EPPlus-based).
  • StringCompressor — GZip string compression/decompression.
  • StringHelper — additional string utilities.

Models

  • BaseSearchCriteria — paginated search criteria with offset, fetch size, sorting.
  • QueryListResult<T> — paginated query result wrapper with total count.
  • DropDownItem — simple key/value model for dropdowns.
  • DateRange & Range<T> — date and generic range types with in-range checks.

Localization

  • SupportedCulture — culture/locale definitions for multi-language support.

Security

  • JwtTokenValidationResult — JWT validation result model.
  • LicenseSigner / LicenseCryptoValidator / LicenseData — RSA-based license signing and validation.

Installation

dotnet add package PGMS.Utils

Usage Examples

Filter builder:

using PGMS.Utils.Helpers;

Expression<Func<Product, bool>> filter = null;
filter = FilterHelper.AddToFilter(filter, p => p.IsActive);
filter = FilterHelper.AddToFilter(filter, p => p.Price > 10);

Paginated search:

using PGMS.Utils.Models;

var criteria = new BaseSearchCriteria(fetchSize: 25);
criteria.SetPage(2); // offset = 25

More Information

© PGMS. All rights reserved.

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 (1)

Showing the top 1 NuGet packages that depend on PGMS.Utils:

Package Downloads
PGMS.AdvBlazorComponents

Advanced Blazor components library built on Blazorise — async data grids with paging, sorting and advanced search, dropdown selects, rich text editors, chip displays, loading spinners and built-in licensing components for .NET Blazor applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 180 3/28/2026