我在下面foreach
的代码段语句中遇到了以下异常:
异常:System.InvalidCastException:无法从源类型转换为目标类型。
我仔细看了看LitJson.JsonData
。它确实有internal class OrderedDictionaryEnumerator : IDictionaryEnumerator
实现。我不确定缺少什么。有任何想法吗?
protected static IDictionary<string, object> JsonToDictionary(JsonData in_jsonObj)
{
foreach (KeyValuePair<string, JsonData> child in in_jsonObj)
{
...
}
}