If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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

I like the regions Idea, this may help. I also agree with good comments.

Take Care,

-Mike

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.