diff --git a/src/NSExt/Extensions/ByteExtensions.cs b/src/NSExt/Extensions/ByteExtensions.cs
index 0e6d4cf..b443098 100644
--- a/src/NSExt/Extensions/ByteExtensions.cs
+++ b/src/NSExt/Extensions/ByteExtensions.cs
@@ -42,11 +42,11 @@ public static class ByteExtensions
/// 是否大写
/// 字节间分隔符
///
- public static string String(this byte[] me, bool upperCase = true, char? splitShar = '-')
+ public static string String(this byte[] me, bool upperCase = true, string splitShar = null)
{
- var ret = BitConverter.ToString(me);
- if (!upperCase) ret = ret.ToLower();
- if (splitShar is not null && splitShar != '-') ret = ret.Replace('-', splitShar.Value);
+ var ret = BitConverter.ToString(me);
+ if (!upperCase) ret = ret.ToLower();
+ if (splitShar != "-") ret = ret.Replace("-", splitShar ?? string.Empty);
return ret;
}
}
\ No newline at end of file
diff --git a/src/NSExt/NSExt.csproj b/src/NSExt/NSExt.csproj
index f800d1f..117fe67 100644
--- a/src/NSExt/NSExt.csproj
+++ b/src/NSExt/NSExt.csproj
@@ -3,7 +3,7 @@
net6.0;net7.0
enable
- 1.0.5
+ 1.0.6