GetValueOrDefault(T) Method
Gets the value if present, otherwise a default value.
Definition
Namespace: Avalonia.Data
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public T GetValueOrDefault(
T defaultValue
)
Public Function GetValueOrDefault (
defaultValue As T
) As T
member GetValueOrDefault :
defaultValue : 'T -> 'T
Parameters
- T
- The default value.
Return Value
T
The value.
See Also
Reference
Optional(T) Structure
GetValueOrDefault Overload
Avalonia.Data Namespace