Ubiquity.NET.Extensions 20.1.8-alpha.0.2

This is a prerelease version of Ubiquity.NET.Extensions.

Requires NuGet 4.9.0 or higher.

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

About

Ubiquity.NET.Extensions contains general extensions for .NET. This is a bit of a "grab bag" of functionality used by but not actually part of multiple other Ubiquity.NET projects.

Key support

  • Computing a hash code for a ReadOnlySpan of bytes using System.IO.System.IO.Hashing.XxHash3
  • DisposableAction for building actions that must occur on Dispose
    • This is useful for implementing the RAII pattern in .NET.
  • MustUseReturnValueAttribute that is compatible with the MustUseRetVal package.
  • StringNormalizer extensions to support converting line endings of strings for interoperability.
  • A custom ValidatedNotNullAttribute to allow compiler to assume a parameter value is validated as not null.
  • Fluent style parameter value validation extensions.
    • These are useful when passing parameters to a function that produces a result that is fed to the base constructor. These are also useful in body expressions to validate input parameters.
  • DictionaryBuilder to enable dictionary initializer style initialization of ImmutableDictionary<TKey, TValue> with significantly reduced overhead.
    • This leverages an ImmutableDictionary<TKey, TValue>.Builder under the hood to build the dictionary. When the ToImmutable() method is called the builder is converted to the immutable state without any overhead of a copy or re-construction of hash tables etc...
  • KvpArrayBuilder to enable array initializer style initialization of ImmutableArray<KeyValuePair<TKey, TValue>> with significantly reduced overhead.
    • This leverages an ImmutableArray<T>.Builder under the hood to build the array directly. When the ToImmutable() method is called the builder is converted to the immutable state without any overhead of a copy.
    • Since this is an array and not a dictionary there is no overhead for allocating, initializing or copying any hash mapping for the keys.
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 (3)

Showing the top 3 NuGet packages that depend on Ubiquity.NET.Extensions:

Package Downloads
Ubiquity.NET.Llvm.Interop

.NET Low Level Interop Bindings for Ubiquity.LibLLVM []. Direct use of this low level API is **STRONGLY** discouraged, instead you should use the Ubiquity.NET.Llvm package, which provides a full C# object model projection of the LLVM APIs on top of this library.

Ubiquity.NET.InteropHelpers

.NET Low Level Interop support library to aid in native code interop scenarios

Ubiquity.NET.Runtime.Utils

General use Support for interpreters/runtimes

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
20.1.8-alpha.0.2 495 7/22/2025
20.1.8-alpha.0.1 21 7/18/2025
20.1.8-alpha 114 7/16/2025