troubleshooting Question

foreach drawbacks?

Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden asked on
C#
9 Comments6 Solutions541 ViewsLast Modified:
Hi there;

I get used to for and while loops. but when it comes to foreach, I couldn't figure out when or how I should use them.

Is there any drawbacks in foreach statements, that, a scenario that they are not applicable and applicable?

Kind regards.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 6 Answers and 9 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 6 Answers and 9 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