TypeUtilities.

ConvertOrDefault(object, Type, CultureInfo) Method

Summary

Convert a value to a type by any means possible, returning the default for that type if the value could not be converted.
Namespace
Avalonia.Utilities
Containing Type
TypeUtilities

Syntax

public static object ConvertOrDefault(object value, Type type, CultureInfo culture)

Parameters

Name Type Description
value object The value to cast.
type Type The type to cast to..
culture CultureInfo The culture to use.

Return Value

Type Description
object A value of type.