I\'m trying to loop through some static properties in a simple static class in order to populate a combo box with their values, but am having difficulties.
Here is t
Try removing BindingFlags.DeclaredOnly, because according to MSDN:
Specifies that only members declared at the level of the supplied type's hierarchy should be considered. Inherited members are not considered.
Since static's cannot be inherited, this might be causing your issues. Also I noticed the fields you are trying to get are not properties. So try using
type.GetFields(...)