everyone, I have a question,
How to determine if a collection contains items of specific type?
For example I have ItemCollection of an ItemControl
var items = comboBox.Items;
I need to know what type of item in the Items collection that is my question
for example I need to determine if
Items is collection of items type of string
or DependencyObject or other type.
Help me please resolve this issue.
Thanks in advance.
This yields a list of all the types that appear in your combo box items.
If you just want to test whether one specific type appears in your list, you can do the following: