remove box

This commit is contained in:
DismissedLight
2023-12-17 19:30:49 +08:00
parent 4cf76ebbc4
commit 655d8a74af
2 changed files with 2 additions and 23 deletions

View File

@@ -1,21 +0,0 @@
// Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license.
namespace Snap.Hutao.Control;
/// <summary>
/// 封装的值
/// </summary>
[HighQuality]
internal static class BoxedValues
{
/// <summary>
/// <see cref="true"/>
/// </summary>
public static readonly object True = true;
/// <summary>
/// <see cref="false"/>
/// </summary>
public static readonly object False = false;
}

View File

@@ -16,7 +16,7 @@ internal sealed class StringBoolConverter : EmptyStringToObjectConverter
/// </summary>
public StringBoolConverter()
{
EmptyValue = BoxedValues.False;
NotEmptyValue = BoxedValues.True;
EmptyValue = false;
NotEmptyValue = true;
}
}