Time to create a dictionary in C# from the programming guide here. First create a new class file named Write three properties for your new class and make your class public. Save your new class and in the next post we’ll initialize an dictionary and populate with some students.
With our dictionary of students created we can now loop through it to retrieve both Keys and values. We will make use of the Enumerable.Range so make sure to add the Linq to your class. Now write the foreach loop. Now let’s run the app and see the result! There you go! Wow! Great work […]