Q:

Retrieving data from Dictionary C#

So i am currently creating a program that maps a String key and a ArrayList of objects (currently integers)
Now i have created a class called Operator that has a method which returns a Dictionary.
To test the output of my Dictionary i decided to make pop (Messagebox) that displays the integer value.
However this proved to be a deal breaker for me. After abit of research i managed to assemble the following code:
          Operator op = new Operator();
        ArrayList a;
        op.startCollecting().TryGetValue("Henvendelser", out a);
        int value = (int) a[0];
        MessageBox.Show("" + value);

Note the startCollecting method returns the Dictionary
When trying to get the data i first have to create a new empty ArrayList, clone my existing ArrayList into that ArrayList, create an integer value, pull the item from the ArrayList at index 0 and then show the messagebox.
I am originally a java programmer, and in Java i would have been able to do this:
int value = op.startCollecting().get("Henvendelser").get(0);

Am i doing it wrong in C#? is there an easier way of Retrieving data?

A:

You can retrieve your value like this :
var value = op.startCollection()["Henvendelser"];

