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