“Microsoft.CSharp.RuntimeBinder.RuntimeBinderException”类型的未经处理的异常在 System.Core.dll 中发生
与“System.Array.IndexOf(System.Array, object)”最匹配的重载方法具有一些无效参数
转化为 List.IndexOf 试试就可以了:
(dic["dataDec"] as List<Dictionary<string, object>>).IndexOf(item); // Array.IndexOf(dic["dataDec"], item);