I have a Dictionary<string, List<Data>>
in the form of data. Here, with the help of my string keyword, I want to access the data I have stored in the List<Data>
and convert it to excel or csv format.
*******************************
** KEY **
*******************************
** StringData ** IntegerData **
** '' ** '' **
** '' ** '' **
** '' ** '' **
I want to create a table structure on an excel csv like the one above.
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>>();