I'm using a Dictionary object (C#) to store key (string) and value (Object) pairs.

I am able to store the Objects in the dictionary without a problem. However, accessing them is not working for me.

Here's the code I've come up with:

```
Object con;

if (dict.ContainsKey(theKey))
{
     con = dict.FirstOrDefault(x => x.Value == theKey).Key;
}
else
{
     throw new Exception("Connection instance unavailable : " + theKey);
}

```

For some reason, `con` always returns empty.