Skip to content

Commit f05a4a3

Browse files
committed
refactor: 使用哈希集合
1 parent 19a798e commit f05a4a3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/components/BootstrapBlazor.Region/Services/DefaultRegionService.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,7 @@ private static void LoadCityData()
142142
[MethodImpl(MethodImplOptions.AggressiveInlining)]
143143
private static string Trim(string segment) => segment.Replace("\"", string.Empty).Trim();
144144

145-
#if NET9_0_OR_GREATER
146-
private static readonly FrozenSet<string> Provinces =
147-
#else
148145
private static readonly HashSet<string> Provinces =
149-
#endif
150146
[
151147
"北京市",
152148
"天津市",

0 commit comments

Comments
 (0)