Re: Code structure question
With larger and larger projects your method of code organizing would really fast create a really big problem of too much files. You would lose count on them. What you can do is to use:
comments - to explain what is happening in the code
regions - to colapse big chunks of code, and
partial classes - if your class is going to be big, with alot of methods, properties, etc... you can divide one class in multiple files.
In my personal experience, this practice was more than enough for good code readability.
Re: Code structure question
Thanks, Nikola.Lukovic,
I like the regions Idea, this may help. I also agree with good comments.
Take Care,
-Mike
Quote:
Originally Posted by
Nikola.Lukovic
With larger and larger projects your method of code organizing would really fast create a really big problem of too much files. You would lose count on them. What you can do is to use:
comments - to explain what is happening in the code
regions - to colapse big chunks of code, and
partial classes - if your class is going to be big, with alot of methods, properties, etc... you can divide one class in multiple files.
In my personal experience, this practice was more than enough for good code readability.