我正在尝试使用hashSet方法,它需要HashEntry []数组。将字典转换为HashEntry
HashSet(RedisKey key, HashEntry[] hashFields, CommandFlags flags = CommandFlags.None);
我试图做到这一点,但是这显然是不工作...
我有字典值
HashEntry[] hash = new HashEntry[value.Count]();
int index = 0;
foreach (var item in value)
{
hash[index].Name = item.Key;
hash[index].Value = item.Value;
index++;
}
错误信息? – DrKoch 2015-02-09 06:45:43