2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00

UInt8Array fix

This commit is contained in:
2020-01-13 14:45:06 +03:00
parent f9bbd603ce
commit 5f4660fde2
8 changed files with 40 additions and 10 deletions

View File

@ -36,7 +36,7 @@ using Esyur.Core;
namespace Esyur.Data
{
public class KeyList<KT, T> : IEnumerable
public class KeyList<KT, T> : IEnumerable<KeyValuePair<KT, T>>
{
private readonly object syncRoot = new object();
private Dictionary<KT, T> dic;
@ -144,11 +144,18 @@ namespace Esyur.Data
}
}
public IEnumerator GetEnumerator()
public IEnumerator<KeyValuePair<KT, T>> GetEnumerator()
{
return dic.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return dic.GetEnumerator();
}
public void Clear()
{
if (removableList)