ConvertOrDefault Method
Convert a value to a type by any means possible, returning the default for that type if the value could not be converted.
Definition
Namespace: Avalonia.Utilities
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static Object? ConvertOrDefault(
Object? value,
Type type,
CultureInfo culture
)
Public Shared Function ConvertOrDefault (
value As Object,
type As Type,
culture As CultureInfo
) As Object
static member ConvertOrDefault :
value : Object *
type : Type *
culture : CultureInfo -> Object
Parameters
- Object
- The value to convert.
- Type
- The type to convert to.
- CultureInfo
- The culture to use.
Return Value
Object
A value of type.