Summary
Casts the type of an
Optional<T>
using only the C# cast operator.
- Namespace
- Avalonia
.Data - Containing Type
- OptionalExtensions
Syntax
public static Optional<T> Cast<T>(this Optional<object> value)
Type Parameters
Name | Description |
---|---|
T | The target type. |
Parameters
Name | Type | Description |
---|---|---|
value | Optional |
The binding value. |
Return Value
Type | Description |
---|---|
Optional |
The cast value. |