提交 fe3c2c2f 编写于 作者: T tanghai

MultiMap返回数组Copy了两次

上级 62e4eae5
...@@ -63,12 +63,7 @@ namespace Model ...@@ -63,12 +63,7 @@ namespace Model
{ {
return new K[0]; return new K[0];
} }
var newList = new List<K>(); return list.ToArray();
foreach (K k in list)
{
newList.Add(k);
}
return newList.ToArray();
} }
/// <summary> /// <summary>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册