TypeUtilitiesConvertImplicitOrDefault Method
Convert a value to a type using the implicit conversions allowed by the C# language or
return the default for the type if the value could not be converted.
Namespace: Avalonia.UtilitiesAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static Object? ConvertImplicitOrDefault(
Object? value,
Type type
)
Public Shared Function ConvertImplicitOrDefault (
value As Object,
type As Type
) As Object
static member ConvertImplicitOrDefault :
value : Object *
type : Type -> Object
- value Object
- The value to convert.
- type Type
- The type to convert to.
ObjectA value of
type.