public string GetNameForObject (object obj) { var p = table.FirstOrDefault (kvp => kvp.Value == obj); return p.Key; }