I'm sure there's a word for this but have had no luck finding anything on it. I have several classes within 'Namespace.Objects' and i want to run a static function called 'RunThis' on all the classes within the namespace without having to type out 'Objects.Class1.RunThis()' for each class. I want to run this from the Namespace.MainClass object and get the value the function returns.I also need to be able to check what the name of the object is to avoid trying to run it on a class that doesn't have it since there is a base class object in there that should be ignored that all the others inherit from.
Namespace(namespace)
....Objects(namespace)
........BaseClass(class)
........Class1(class)
........Class2(class)
........Class3(class)
........Class4(class)
....MainClass(class)