Question: create a project that will use code similar to the previous DynamicObject code sample to read in data from a CSV file and produce dynamic

create a project that will use code similar to the previous DynamicObject code sample to read in data from a CSV file and produce dynamic objects with properties that match the headers in the file. Then write out the data to the screen in a formate like, "[player] had a score of [Score]."
c#

static void Main(string[] args)

{

IEnumerable scores = new CSVParser().Parse("Scores.csv");

foreach (dynamic score in scores)

Console.WriteLine(score.Name + " had a score of " + score.Score);

Console.ReadKey();

}


Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!