OptionalExtensions.

Cast<T>(Optional<object>) Method

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<object> The binding value.

Return Value

Type Description
Optional<T> The cast value.