Is there a way to test if an object is a dictionary?
In a method I\'m trying to get a value from a selected item in a list box. In some circumstances, the list box
if(typeof(IDictionary).IsAssignableFrom(listBox.ItemsSource.GetType())) { }