我收到此错误:
参数2:无法从
'System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, Rules.SimpleRule>>'
转换为'System.Collections.Generic.Dictionary<string, Rules.SimpleRule>'
有人可以帮我解决这个问题吗?
public void AddFlag(string name,
IEnumerable<KeyValuePair<string,SimpleRule>> rule)
{
Flags.Add(name, rule);
}