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).
$ dotnet add package OneOf.ToTupleExtensionsThis library extends OneOf<> and OneOfBase<> with methods to convert them into Tuple<> or ValueTuple<>, which have methods to deconstruct into the underlying types.
The major problem solved by this library is that deconstruction is not trivial because of non-nullable value types, so 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).