Enterprise Architect – for instead of foreach?

Lately I experienced a strange error automating Enterprise Architect: iterating through the Element-Collection of Package resultet in an AccessViolationException. It worked fine for the first time, but failed the next time, until I replaced the FOREACH-loop with FOR....


While writing all the LINQ statements for an ASP.Net MVC and ADO.NET Microsoft Entity framework project, I came across the Linqpad tool. If you are working with Linq you should have a look at this amazing tool.