TypeUtilitiesTryConvertImplicit 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) Version: 11.3.999
public static bool TryConvertImplicit(
	Type to,
	Object? value,
	out Object?? result
)

Parameters

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

Return Value

Boolean
True if the convert was successful, otherwise false.

See Also