Skip to main content

ConvertImplicitOrDefault 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.

Definition

Namespace: Avalonia.Utilities
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static Object? ConvertImplicitOrDefault(
Object? value,
Type type
)

Parameters

  Object
The value to convert.
  Type
The type to convert to.

Return Value

Object
A value of type.

See Also

Reference

TypeUtilities Class
Avalonia.Utilities Namespace