Randall Twede wrote:less code too
Maybe, but any time I see 8 "end-block"s in a row, I get brain-ache.
My advice:
1. Put this into a separate method.
2. See if you can't reduce some of those loops and/or if's. I can't remember the last time I wrote code nested 8 deep - or even if I ever have.
Also: Please
DontWriteLongLines. It makes your
thread very difficult to read. I'd correct them myself, but you have tons of them.
Remember:
80 characters max.
Winston