0

我有一个Dictionary<string, List<Data>> 数据形式。在这里,借助我的字符串关键字,我想访问我存储在其中的数据List<Data>并将其转换为 excel 或 csv 格式。

*******************************
**            KEY            **
*******************************
** StringData ** IntegerData **
**  ''        ** ''          **
**  ''        ** ''          **
**  ''        ** ''          **

我想在上面的 excel csv 上创建一个表结构。

 public struct Data
        {
            public Data(String strValue, int intValue)
            {
                IntegerData = intValue;
                StringData = strValue;
            }

            public int IntegerData { get; private set; }
            public string StringData { get; private set; }
        }

 Dictionary<string, List<Data>> ds = new Dictionary<string, List<Data>>();
4

0 回答 0