因此,我在设置中添加了一个OrderedDictionary。我使用控件的类型名称作为键,节点的路径作为值。由于无法为该词典设置默认值,所以我使用了以下技巧:public OrderedDictionary Paths get return(LastsPaths = new OrderedDictionary()); set this["LastsPaths"] = value;
}global::
我试图从OrderedDictionary中使用,当我试图将字典转换为OrderedDictionary时,我得到了以下错误。Cannot convert value of type '[String : Double]' to specified type 'OrderedDictionary<Key, Value>'
let sortedDict: OrderedDictionary<String, Do
public OrderedDictionary spellResults = new OrderedDictionary() {"Test",new int[]{5,7}} Console.WriteLine(pval[0]+","+pval[1]);
编辑:原来我这样做也是正确的,但当我第一次使用在线编译器尝试测试时,我忽略了将OrderedDictionary