private static Dictionary <string, string> convertToDictionary(AdomdDataReader reader) { var dataObject = new Dictionary <string, string>(); var values = new object[reader.FieldCount]; reader.GetValues(values); for (int i = 0; i < reader.FieldCount; i++) { dataObject.Add(reader.GetName(i), stringify(reader, i)); } return(dataObject); }