I noticed this code in our project
Dictionary<int, IList> someDict = new Dictionary<int, IList>();
What's the idead of using interface for value? Does that means that I can put in every list that implements/support IList ? For example, can I put L List<int>
and List<string>
for values in the dictionary ?