Skip to content

Commit 229fedd

Browse files
authored
chore(JsonEnumConverter): remove core namespace (#4531)
* refactor: 更改命名空间 * chore: 移除不使用的命名空间 * test: 更新单元测试
1 parent cf30213 commit 229fedd

File tree

8 files changed

+2
-12
lines changed

8 files changed

+2
-12
lines changed

src/BootstrapBlazor/Components/ThemeProvider/ThemeValue.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
55

6-
using BootstrapBlazor.Core.Converter;
7-
86
namespace BootstrapBlazor.Components;
97

108
/// <summary>

src/BootstrapBlazor/Converter/JsonDescriptionEnumConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Text.Json;
77
using System.Text.Json.Serialization;
88

9-
namespace BootstrapBlazor.Core.Converter;
9+
namespace BootstrapBlazor.Components;
1010

1111
/// <summary>
1212
/// 枚举类型转换器 序列化时把枚举类型的 [Description] 标签内容序列化成字符串 推荐使用 <see cref="JsonEnumConverter"/> 转换器

src/BootstrapBlazor/Converter/JsonEnumConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Text.Json;
77
using System.Text.Json.Serialization;
88

9-
namespace BootstrapBlazor.Core.Converter;
9+
namespace BootstrapBlazor.Components;
1010

1111
/// <summary>
1212
/// JsonEnumConverter 枚举转换器

src/BootstrapBlazor/Options/ScrollIntoViewOptions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
55

6-
using BootstrapBlazor.Core.Converter;
7-
86
namespace BootstrapBlazor.Components;
97

108
/// <summary>

src/BootstrapBlazor/Services/Bluetooth/BluetoothServices.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
55

6-
using BootstrapBlazor.Core.Converter;
76
using System.Text.Json.Serialization;
87

98
namespace BootstrapBlazor.Components;

src/BootstrapBlazor/Services/Serial/SerialPortFlowControlType.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
55

6-
using BootstrapBlazor.Core.Converter;
7-
86
namespace BootstrapBlazor.Components;
97

108
/// <summary>

src/BootstrapBlazor/Services/Serial/SerialPortParityType.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
55

6-
using BootstrapBlazor.Core.Converter;
7-
86
namespace BootstrapBlazor.Components;
97

108
/// <summary>

test/UnitTest/Converters/JsonDescriptionEnumConverterTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
55

6-
using BootstrapBlazor.Core.Converter;
76
using System.ComponentModel;
87
using System.Text.Json;
98
using System.Text.Json.Serialization;

0 commit comments

Comments
 (0)