|
@ -84,15 +84,8 @@ namespace IPA.Config.Stores.Converters |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Gets the default <see cref="ValueConverter{T}"/> for the current type.
|
|
|
/// Gets the default <see cref="ValueConverter{T}"/> for the current type.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public static ValueConverter<T> Default |
|
|
|
|
|
{ |
|
|
|
|
|
get |
|
|
|
|
|
{ |
|
|
|
|
|
if (defaultConverter == null) |
|
|
|
|
|
defaultConverter = MakeDefault(); |
|
|
|
|
|
return defaultConverter; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public static ValueConverter<T> Default |
|
|
|
|
|
=> defaultConverter ??= MakeDefault(); |
|
|
|
|
|
|
|
|
private static ValueConverter<T> MakeDefault() |
|
|
private static ValueConverter<T> MakeDefault() |
|
|
{ |
|
|
{ |
|
|