in the following code
foreach(var item in ItemList)
// If an item doesn't have any property, skip it.
For each item, there are several properties. However, some items don't have any values for properties. In that case I want to skip the loop for that item. The type of property is KeyValuePair
what is the easiest way to achieve this task?
Since I don't know what properties are there for each item, I couldn't loop through the name of properties. if(item.GetType().GetProperties(".....") != null)