[fix] 修复StringUtils.CollectionToString对Dictionary类型拼接的bug

This commit is contained in:
walon 2024-11-23 19:47:33 +08:00
parent 7dcd33fd67
commit c19185ac4e

View File

@ -39,7 +39,8 @@ namespace Luban
public static string CollectionToString<TK, TV>(IDictionary<TK, TV> dic)
{
var sb = new StringBuilder('{');
var sb = new StringBuilder();
sb.Append('{');
foreach (var e in dic)
{
sb.Append(e.Key).Append(':');