Compze.Utilities.SystemCE 0.2.1-alpha

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

Compze.Utilities.SystemCE

Extensions and utilities for .NET System types in Compze.

What is Compze?

Compze is a .NET framework for building expressive domains through Teventive programming and Typermedia APIs. Learn more

What's in this package?

A comprehensive set of extension methods and utility classes enhancing common .NET types — strings, collections, enums, reflection, IO, transactions, reactive, and LINQ.

Strings

  • Ordinal-safe operations — ContainsCE(), StartsWithCE(), ReplaceCE() (avoid culture-dependent defaults)
  • Join(), Pluralize(), FormatInvariant()
  • IsNullEmptyOrWhiteSpace(), RemoveLeadingNewLines(), RemoveLinesWhere()
  • StringIndenterIndentToDepth(), IndentTab(), JoinLines()

Collections and LINQ

  • ForEach(), WhereNotNull(), None(), ChopIntoSizesOf(), Flatten()
  • ToReadOnlyList(), immutable-style AddToCopy() / AddRangeToCopy()
  • GetOrAdd(), RemoveWhere(), AddRange()
  • FlattenHierarchy() for tree structures
  • CartesianProduct() generator
  • Int sequence generation — 1.Through(10), 0.Until(5), 0.By(2).Through(10)

Reflection

  • Type inspection — Implements<T>(), ClassInheritanceChain(), IsOpenGenericType()
  • Compiled constructor delegates — Constructor.For<T>.DefaultConstructor
  • Dynamic type building via IL emit

Time and dates

  • Fluent TimeSpan factory — 500.Milliseconds(), 2.Seconds(), 1.Hours()
  • TimeSpan aggregation — Min(), Max(), Sum(), Average()
  • DateTimeToUniversalTimeSafely(), ParseInvariant(), TimeElapsedSince()

Transactions

  • TransactionScopeCE.Execute() — simplified transaction scope usage
  • VolatileLambdaTransactionParticipant — lambda-based commit/rollback hooks
  • Transaction.OnCommittedSuccessfully() extension

Reactive

  • SimpleObservable<T> — thread-safe IObservable<T> implementation

Other utilities

  • Disposable / AsyncDisposable — action-based disposable implementations
  • LazyCE<T> — thread-safe lazy with reset capability
  • RunOnce — atomic one-time execution guard
  • ScopedChange — temporary state change with IDisposable restore
  • EnumCEIsValid(), AssertValid(), Values<TEnum>()
  • CastCECastTo<T>() extension
  • UncatchableExceptionsGatherer — collects finalizer exceptions for later rethrowing

Installation

dotnet add package Compze.Utilities.SystemCE
Package Description
Compze.Utilities.SystemCE.ThreadingCE Threading and synchronization
Compze.Contracts Design-by-contract assertions
Compze.Underscore Functional programming primitives
Compze.Utilities Core utilities

License

Apache-2.0

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

Showing the top 5 NuGet packages that depend on Compze.Utilities.SystemCE:

Package Downloads
Compze.Utilities.Testing.Must

Fluent assertion library for Compze testing.

Compze.Utilities.Testing.XUnit

xUnit testing utilities and attributes for the Compze framework.

Compze.Utilities.DependencyInjection

Package Description

Compze.Utilities.Logging

Package Description

Compze.Utilities.DependencyInjection.SimpleInjector

SimpleInjector dependency injection integration for the Compze framework.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.1-alpha 52 3/4/2026
0.2.0-alpha.1 77 2/28/2026
0.1.0-alpha.3 276 2/13/2026