GetValueOrDefault<TResult> Method
Gets the value if present, otherwise the default value.
Definition
Namespace: Avalonia.Data
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public TResult GetValueOrDefault<TResult>()
Public Function GetValueOrDefault(Of TResult) As TResult
member GetValueOrDefault : unit -> 'TResult
Type Parameters
Return Value
TResult
The value if present and of the correct type, default(TResult)
if the value is not present or of an incorrect type.
See Also
Reference
Optional(T) Structure
GetValueOrDefault Overload
Avalonia.Data Namespace