Avatar of techsuppoprt
techsuppoprt
 asked on

Creating collection of classes

Hi Experts.
I need a little help here please.
I have a database processing app here with a few dozens of static classes. Each class basically represents a class. All classes have a simular structure..
I need to be able to loop through all those classes somehow to execute them. I realize i can just write out something like:
class1.execute();
class21.execute();
class3.execute();
class4.execute();
.
.
.
but I have a feeling there must be an easier way. Maybe I can connect them all with the interface somehow ? create a collection and loop through ? I'm not an expert on this yet so please help.
Thanks in advance!
C#

Avatar of undefined
Last Comment
techsuppoprt

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Jaime Olivares

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
techsuppoprt

ASKER
Thank you.
Thank answered the question I asked but my problem is I didn't ask correctly...
I'll just post another question.
Thanks again.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy