TypeUtilities.

TryConvertImplicit(Type, object, object) Method

Summary

Try to convert a value to a type using the implicit conversions allowed by the C# language.
Namespace
Avalonia.Utilities
Containing Type
TypeUtilities

Syntax

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

Parameters

Name Type Description
to Type The type to cast to.
value object The value to cast.
result object If successful, contains the cast value.

Return Value

Type Description
bool True if the cast was successful, otherwise false.