While you can scroll through constants declared in the same way as using reflection (as other answers show), this is not ideal.
It would be much more efficient to store them in some kind of enumerable object: an array, a list, an ArrayList, whatever it best suits your requirements.
Sort of:
public class Parent { public static List<string> Children = new List<string> {"John", "Mary", "Jane"} }
Then:
if (Parent.Children.Contains(foo.Type) {
source share