using System.Collections.Generic;
public IDictionary<int, IEnumerable<int>> D { get; set; }
public IEnumerable<int> H { get; set; }
public static void Main()
var hashSet = new HashSet<int>{1,2,1};
PrintCollection(hashSet);
var a = new A { H = hashSet };
var d = new Dictionary<int, HashSet<int>>
PrintCollection(a.D.First().Value);
public static void PrintCollection(IEnumerable<int> collections)
foreach (var item in collections)