In Java I can print values of collection just passing collection to output:
Map<Integer, String> map = new HashMap<Integer, String>(){
{
put(1, "one");
put(2, "two");
}
};
System.out.println(map);
Output:
{1=one, 2=two}
In C# similar code would give me info about collection types, instead of values inside, I've been looking for it, but as I understand in C# you have to work around to get output of values from collection. As I understand with C# you can't show values of collection as simple as using Java, am I right ?