Skip to content

reiugit/CustomOneOfTypesWithOneOfBase

Repository files navigation

Custom OneOf-Types with OneOfBase

This example:

  • Converts text to the Discriminated Union 'IntOrDoubleOrText',
    which inherits from 'OneOfBase<int, double, string>' and
    which can store either an integer, a double or a string.

  • Then it prints the type of the value, which is stored in the Discriminated Union.

About

Custom OneOf-Types with OneOfBase.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages