TehGM.Utilities 0.2.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package TehGM.Utilities --version 0.2.2                
NuGet\Install-Package TehGM.Utilities -Version 0.2.2                
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="TehGM.Utilities" Version="0.2.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TehGM.Utilities --version 0.2.2                
#r "nuget: TehGM.Utilities, 0.2.2"                
#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.
// Install TehGM.Utilities as a Cake Addin
#addin nuget:?package=TehGM.Utilities&version=0.2.2

// Install TehGM.Utilities as a Cake Tool
#tool nuget:?package=TehGM.Utilities&version=0.2.2                

TehGM's C# Utility Libraries

GitHub top language GitHub GitHub Workflow Status GitHub issues

This solution contains utility libraries that I created to make features easy to re-use in multiple projects.

Work in Progress

This set of libraries is currently Work in Progress - and it might stay in this state indefinitely.
These libraries are designed primarily for personal use, so I do not guarantee that updates don't include breaking changes.
Keep this in mind if upgrading these libraries for any version before 1.0.0.

Included Libraries

This NuGet package currently contains following libraries:

  • TehGM.Utilities.UniqueIDs - includes types and methods for generating unique IDs.
  • TehGM.Utilities.Logging - includes helpers for logging.
  • TehGM.Utilities.Randomization - utilities for generating random values.
  • TehGM.Utilities.Time - time conversion and formatting utilities.
  • TehGM.Utilities.Validation - type and data validation utilities.
  • TehGM.Utilities.Threading - threading and async/await utilities.
  • TehGM.Utilities.AspNetCore - general ASP.NET Core utilities.

More libraries might be added as needed, when needed (by me)... or when I feel like it.

JSON.NET Support

Some of the libraries might have an additional package, which extends their functionality by adding JSON.NET support (such as converters).
These libraries need to be installed separately. This is because they depend on Newtonsoft.Json package, which might only pollute projects that don't make use of it

  • TehGM.Utilities.Time.JsonNet - JSON.NET support for TehGM.Utilities.Time.
  • TehGM.Utilities.UniqueIDs.JsonNet - JSON.NET support for TehGM.Utilities.UniqueIDs.

Source Repository

TehGM.Utilities is open source, with code hosted on GitHub.

There are no supported framework assets in this 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
0.2.3 173 2/16/2024
0.2.2 261 3/9/2023
0.2.1 256 2/20/2023
0.2.0 296 12/17/2022
0.1.0 317 6/23/2022

- UniqueIDs: Add TypeConverter for Base64Guid.
- UniqueIDs: Implement IParsable and ISpanParsable for Base64Guid (.NET7+).
- Time: Add TypeConverter for UnixTimestamp.
- Time: Implement IParsable and ISpanParsable for UnixTimestamp (.NET7+).
- Randomization: Fix multi-targetting compilation for .NET6+.