Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.Utilities.Editor |
public static class ConvertUtility
public static void AddCustomConverter(ConvertUtility.ICustomConverter converter)
Sirenix.OdinInspector.Editor.ConvertUtility.ICustomConverter | converter |
public static bool CanConvert(Type from, Type to)
System.Type | from | |
System.Type | to |
System.Boolean |
public static bool CanConvert<TFrom, TTo>()
System.Boolean |
TFrom | |
TTo |
public static T Convert<T>(object value)
System.Object | value |
T |
T |
public static TTo Convert<TFrom, TTo>(TFrom value)
TFrom | value |
TTo |
TFrom | |
TTo |
public static bool TryConvert<T>(object value, out T result)
System.Object | value | |
T | result |
System.Boolean |
T |
public static bool TryConvert<TFrom, TTo>(TFrom value, out TTo result)
TFrom | value | |
TTo | result |
System.Boolean |
TFrom | |
TTo |
public static bool TryWeakConvert(object value, Type to, out object result)
System.Object | value | |
System.Type | to | |
System.Object | result |
System.Boolean |
public static object WeakConvert(object value, Type to)
System.Object | value | |
System.Type | to |
System.Object |