TypeUtilitiesConvertOrDefault Method
Convert a value to a type by any means possible, returning the default for that type
if the value could not be converted.
Namespace: Avalonia.UtilitiesAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
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
- value Object
- The value to convert.
- type Type
- The type to convert to.
- culture CultureInfo
- The culture to use.
ObjectA value of
type.