My code recently grew to a non-acceptable amount (1000+ lines) and it was getting hard to naviagate. Coming off from Visual Basic I used to be able to just plop all my variables, into a module. I have about 50 lines of those alone. So I figured I could toss those in a "class" and call it a day. Well, of course not. My other Main class is no longer picking them up. Perhaps, someone could tell me what is going on?
I'd also appreciate it if someone could tell me how to call my void methods from a separate class, it'd be greatly valued!
A question about classess.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Mahesh ChandRank #1 · 393K pointsPosted Mar 12, 2009, 7:24 PM EDT
Jason Meyer20 pointsPosted Mar 13, 2009, 3:43 PM EDT
#region Name // the Name is what you want to call the region Than you can use little plus/minus
// buttons to the left of the #region to collapse or expand the region to keep things more organized
#endregion
You can than have all your var in one region. or your get set methods or whatever groups you have for the program
Hope that helps a little if any