Tag: indexoutofrangeexception

如何使用具有相同键的两个不同词典的值来构建新词典

假设我们有两个带有以下键对值的字典: 字典1:[{1,abc} {2,cde} {3,efg}] 字典2:[{1,123} {2,234} {3,345}] 我想创建一个字典如下:字典3:[{abc,123} {cde,234} {efg,345}] fieldValues = new List<List>(); docFieldKey = new List<List>(); docFieldValueDict = new Dictionary<string, List>(); docKeyDict = new Dictionary<string, List>(); iterateDocKeyDict = new List(); iterateDocFldValueDict = new List(); //To read row wise and store key and all values for (limit = 0; limit < docNames.Count; limit++) { […]