NET3.5 or 4.0, using LINQ would sometimes make your coding a lot easier.
Writing code to loop through various collection objects in drawing database is one of mostly encountered tasks of AutoCAD programmers.