I have a dictionary that I am trying to display all values from. The issue with the answers I have found is that they only return the key and the value. My value is a type I made within my repository.

1. Below is my dictionary. My value is my Badge class with multiple properties:

```
public class BadgesRepository
{
    private Dictionary<int, Badge> badgeDictionary = new Dictionary<int, Badge>();
    public void AddBadgeDictionaryEntry(int badgeID, Badge newBadge)
    {
        badgeDictionary.Add(badgeID, newBadge);
    }
}

```

2. Below is my Badge class :

```
public class Badge
{
    public int BadgeID { get; set; }
    public string BadgeName { get; set; }
    public List<string> DoorList { get; set; }
}

```

3. Here I'd like to display all values of the Dictionary:

```
private void ViewAllBadges()
{
    Console.WriteLine("All badge data is listed below: ");
    Dictionary<int, Badge>.ValueCollection values = 
    foreach (Badge val in values)
    {
        Console.WriteLine("Badge ID: {0}", val);
    }
}

```