34 packages tagged with “oneOf”
System.Text.Json serialization support for OneOf types.
Extension methods which enable chainging of methods together, including async, any method can be chained as long as it returns a Task of OneOf of T or TFailure. Depends on the OneOf library (MIT).
Portable library for easy to use F#-like Discriminated Unions in C#. Implicitly casts objects into OneOf instances, then use .Match extension to do pattern matching. Designed as a partial drop in replacement for OneOf.
OneOf Extensions
A Source Generator that creates typed extension methods for OneOf usages.
Discriminated unions for C#, based on the well-known OneOf package, with modified functionality and other improvements
PlumbR brings together ASP.NET Core Minimal API, MediatR, and FluentValidation to create a simple, clean, and testable API.
A collection of Blazor components for dealing with OneOf types in your Blazor project. Instead of writing a switch statement to handle the different cases of a OneOf type, you can use these components to render the correct component for the case. Example: <OneOfSwitch2 Value="myOneOfWithTwoTypeParameters"> <T0Template> <p>I am of type T0 and my value is @context!.</p> </T0Template> <T1Template> <p>I am of type T1 and my value is @context!.</p> </T1Template> </OneOfSwitch2>
A source generator for OneOf pattern implementation
Attributes for Sorry.SourceGens - A source generator for OneOf pattern implementation
Suppresses exhaustiveness warnings of switch statement and switch expressions on OneOf<...>.Value from the OneOf library when all type arguments are covered. See project URL for details. It suppresses IDE0010, IDE0072 and CS8509. It is NRT-aware.
Contains union-types representing either a successful result or a union-list of possible errors
Annotations for decorate OneOf Helper Extensions
Source generator to create OneOf Helper Extensions
A .NET source generator for creating discriminated unions in C# with OneOf.
Cortex Data Framework is a robust, extensible platform designed to facilitate real-time data streaming, processing, and state management. It provides developers with a comprehensive suite of tools and libraries to build scalable, high-performance data pipelines tailored to diverse use cases. By abstracting underlying streaming technologies and state management solutions, Cortex Data Framework enables seamless integration, simplified development workflows, and enhanced maintainability for complex data-driven applications.
Source code generator for creating state marker types based on a custom simple CSV file
This library provides common functional types and operations on them: * Option<T> - wraps a value that might not exist in a safe manner; * Result<T, E> - wraps a value that might not exist due to some processing error; * OneOf<T1, T2, T3> - discriminated union on one of T1, T2 or T3. See more at https://github.com/JFomit/JFomit.Functional.
S3 based sdk using OneOf
This library extends OneOf and OneOfBase with extensions methods to convert into Tuple or ValueTuple. All non-nullable value types are automatically converted into nullable types, so the underlying Tuple values will always have a single non-null value (all other values will be null).
This library extends OneOf and OneOfBase with deconstructors methods to deconstruct into the underlying types. All non-nullable value types are automatically converted into nullable types, so the deconstructed values will always have a single non-null value (all other values will be null).
A lightweight functional programming library for .NET providing Result, Maybe, and OneOf types for railway-oriented programming and error handling.
Runtime compatibility helpers for converting OneOf library types to UnionGenerator unions. Lightweight reflection-based interoperability for gradual migration.
Fluent extension methods for converting OneOf types to UnionGenerator unions. Includes JSON serialization helpers with Newtonsoft.Json support.
Roslyn source generators for HVO.Core — generates discriminated union implementations from [NamedOneOf] attributes.
Compile-time source generator for converting OneOf types to UnionGenerator unions. Zero-overhead compile-time conversion without runtime reflection.
Immutable, allocation-free Union types for C#, inspired by functional programming and discriminated unions.