Optional<T>.

GetValueOrDefault(T) Method

Summary

Gets the value if present, otherwise a default value.
Namespace
Avalonia.Data
Containing Type
Optional<T>

Syntax

public T GetValueOrDefault(T defaultValue)

Parameters

Name Type Description
defaultValue T The default value.

Return Value

Type Description
T The value.