I have array contains {[Name][Age],[Marks]}.I want to add the marks into dictionary .How can I?
- var tableEnumerable = dt.AsEnumerable();
- var tableArray = tableEnumerable.ToArray();
- foreach (var data in tableArray)
- {
- lst.Add(data["Name"].ToString(),data["Age"] as string);
-
- }