Class OptionalExtensions
public static class OptionalExtensions
- Inheritance
-
OptionalExtensions
- Inherited Members
Methods
Cast<T>(Optional<object?>)
Casts the type of an Optional<T> using only the C# cast operator.
public static Optional<T> Cast<T>(this Optional<object?> value)
Parameters
Returns
- Optional<T>
The cast value.
Type Parameters
T
The target type.