Soenneker.Enums.InitializationModes 4.0.44

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Enums.InitializationModes --version 4.0.44
                    
NuGet\Install-Package Soenneker.Enums.InitializationModes -Version 4.0.44
                    
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="Soenneker.Enums.InitializationModes" Version="4.0.44" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Enums.InitializationModes" Version="4.0.44" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Enums.InitializationModes" />
                    
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 Soenneker.Enums.InitializationModes --version 4.0.44
                    
#r "nuget: Soenneker.Enums.InitializationModes, 4.0.44"
                    
#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 Soenneker.Enums.InitializationModes@4.0.44
                    
#: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=Soenneker.Enums.InitializationModes&version=4.0.44
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Enums.InitializationModes&version=4.0.44
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Enums.InitializationModes

A string-backed enum-value type for selecting an initializer signature by execution style and accepted arguments.

Install

dotnet add package Soenneker.Enums.InitializationModes

Usage

using Soenneker.Enums.InitializationModes;

InitializationMode mode = InitializationMode.AsyncKeyToken;
string wireValue = mode.Value; // "AsyncKeyToken"

if (InitializationMode.TryFromValue(input, out InitializationMode? parsed))
{
    // Select the initializer signature represented by parsed
}
Value Async Key Cancellation token
Async Yes No No
AsyncKey Yes Yes No
AsyncKeyToken Yes Yes Yes
Sync No No No
SyncKey No Yes No
SyncKeyToken No Yes Yes

System.Text.Json serializes the type as the shown string value. FromValue throws for unknown input; use TryFromValue at configuration or request boundaries. FromName and TryFromName are also generated.

This package describes an initialization shape; it does not invoke an initializer, store a key, create a cancellation token, or enforce cancellation. The consuming component defines the key type and the exact semantics of each mode.

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 Soenneker.Enums.InitializationModes:

Package Downloads
Soenneker.Dictionaries.SingletonKeys

An externally initializing singleton dictionary that uses double-check asynchronous locking, with optional async and sync disposal

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.45 32 8/30/2026
4.0.44 40 8/30/2026
4.0.43 41 8/30/2026
4.0.42 37 8/29/2026
4.0.41 76,202 8/21/2026
4.0.40 30,213 8/18/2026
4.0.39 89 8/18/2026
4.0.38 106,000 8/7/2026
4.0.37 87 8/7/2026
4.0.36 29,694 7/28/2026
4.0.35 21,218 7/28/2026
4.0.34 101,893 7/16/2026
4.0.33 106 7/16/2026
4.0.32 132,705 7/3/2026
4.0.31 34,292 6/19/2026
4.0.30 22,755 6/19/2026
4.0.29 142,638 6/5/2026
4.0.28 114 6/5/2026
4.0.27 160,555 5/1/2026
4.0.26 38,301 4/22/2026
Loading failed

Update dependency Soenneker.Gen.EnumValues to 4.0.45 (#206)