troubleshooting Question

Creating collection of classes

Avatar of techsuppoprt
techsuppoprt asked on
C#
2 Comments1 Solution235 ViewsLast Modified:
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!
ASKER CERTIFIED SOLUTION
Jaime Olivares
Software Architect
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros