Ok I'm programming in C# and I've been creating, well I guess basically it's an IRC bot. It takes the value of the streamreader and parses it through if statements to determine what action (if any to take).

To make it easier for me to debug code, and edit I've subheaded certain if statements under static void subs.

I wonder though as this project is large enough in itself and is ever growing, is it good practice and advisable to subsection some of these subs into other classes / namespaces?

This would make it easier for me to debug and find the correct if statement. But as I use class global variables I'd have to link back to them from the other classes and wonder if this actually works or not?

Also is it generally bad practice to have a lot of code under one class / namespace?

Any opinnions and suggestions are much appreciated