OptionalTGetValueOrDefaultTResult Method
Gets the value if present, otherwise the default value.
Namespace: Avalonia.DataAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public TResult GetValueOrDefault<TResult>()
Public Function GetValueOrDefault(Of TResult) As TResult
member GetValueOrDefault : unit -> 'TResult
- TResult
TResult
The value if present and of the correct type, `default(TResult)` if the value is
not present or of an incorrect type.