Skip to main content

TryConvertImplicit Method

Try to convert a value to a type using the implicit conversions allowed by the C# language.

Definition

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

public static bool TryConvertImplicit(
Type to,
Object? value,
out Object?? result
)

Parameters

  Type
The type to convert to.
  Object
The value to convert.
  Object
If successful, contains the converted value.

Return Value

Boolean
True if the convert was successful, otherwise false.

See Also

Reference

TypeUtilities Class
Avalonia.Utilities Namespace