Found 517 packages
Package Description
Union typing is only needed when you have a statically typed language, as you need to declare that an object can return one of multiple types (in your case an int or string , or in the other example string or null)
银联支付类库,参考https://github.com/essensoft/payment
Immutable persistent collections, algebraic sum-type aka descriminated union, Ref type and supportive extensions for performant functional programming in C#. Split from the DryIoc: https://github.com/dadhi/DryIoc
Discriminated union type source generator
This package helps to serialize .NET/C# classes hierarchy as a tagged union (also known as a discriminated union).
ExhaustiveMatching.Analyzer adds exhaustive matching to C# switch statements and expressions. Get compiler errors for missing cases in a switch statement or expression. Mark which switches should have exhaustiveness checking by throwing an exception in the default case. Exhaustiveness checking works not just for enums, but for classes and interfaces. Turn them into discriminated unions (aka sum types) by marking them with the 'Closed' attribute and listing the cases. ExhaustiveMatching.Analyzer goes beyond what other languages support by handling full inheritance hierarchies.
Ding.Biz.Payment.UnionPay是基于.net core平台开发的应用框架中的银联支付类库。
Contains the attributes for the nuget package CSharpDiscriminatedUnion
Polygon Clipping and Offsetting Library
C# source generator to generate efficient and type-safe variant types for unmanaged types.
A simple, fluent discriminated union of an error or a result.
A simple source generator for discriminated unions in C#.
F# style discriminated unions for C#, using a custom type OneOf<T0, ... Tn> which holds a single value and has a .Match(...) method on it for exhaustive matching. Simple but powerful.
Xamarin iOS Binding Library - Braintree UnionPay
A source generator that generates `Match` methods for all your discriminated unions needs. ✨
The Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons.
Implementation of Discriminated Union and Pattern Matching in C#. string outputValue = x.Match<String>() .Case(c => c == "Test", v => "It's Test!") .Case(v => "It's Not Test!") .Else(() => "It's None!") or var x = new Union<string, int>(100); // the type annotations below are optional and only added for clerity. string value = x.Match<string>() .Case((string v) => v) .Case((int c) => c == 100, (int v) => "Keeping It 100.") .Case((int v) => "Tea?") .Else(() => "Nothing"); Assert.Equal("Keeping It 100.", value);
Creates discriminated unions in C#. Define a template for a discriminated union and the appropriate code will be generated.