Table of Contents

Class OptionalExtensions

Namespace
Avalonia.Data
Assembly
Avalonia.Base.dll
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

value Optional<object>

The binding value.

Returns

Optional<T>

The cast value.

Type Parameters

T

The target type.