向Dictionary实例里插入数据,竟然报这样的错??
guag 2007-03-02 03:54:07 private static IDictionary<string, ClassMap> cache = new Dictionary<string, ClassMap>();
public static void Add(string key, ClassMap map)
{
if (!cache.Keys.Contains(key))
{
cache.Add(key, map);
}
}
Exception:
The index is outside boundary of arrangement.