TypeUtilities.

ConvertImplicitOrDefault(object, Type) Method

Summary

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.Utilities
Containing Type
TypeUtilities

Syntax

public static object ConvertImplicitOrDefault(object value, Type type)

Parameters

Name Type Description
value object The value to cast.
type Type The type to cast to..

Return Value

Type Description
object A value of type.