Variant<T1, T2>
Represents value that can be one of two possible types.
Interprets stored value as T1.
Indicates that this container stores non-null value.
Interprets stored value as T2.
Creates a new variant value from value of type T1.
Creates a new variant value from value of type T2.
Determines whether the two variant values are equal.
Converts variant value into type T1.
Converts variant value into type T2.
Indicates that variant value is null value.
Converts value of type T1 into variant.
Converts value of type T2 into variant.
Determines whether the two variant values are not equal.
Indicates that variant value is non-null value.
Converts the stored value.
public Optional<TResult> Convert<TResult>(Converter<T1, TResult> mapper1, Converter<T2, TResult> mapper2)
Converts the stored value.
public Variant<TResult1, TResult2> Convert<TResult1, TResult2>(ref ValueFunc mapper1, ref ValueFunc mapper2)
Converts this variant value into another value.
public Variant<TResult1, TResult2> Convert<TResult1, TResult2>(Converter<T1, TResult1> mapper1, Converter<T2, TResult2> mapper2)
Converts this variant value into another value.
Deconstructs this object.
Determines whether the value stored in this variant
container is equal to the value stored in the given variant
container.
Change order of type parameters.