I am new to programming in c# and I have started to develop a project of around 500 lines. I have many functions and variables declared and iam using comments near the code to make it easy to identify code blocks like:
//code for login button
private void button1_Click(object sender, EventArgs e)
{
}
But this is little difficult for me. Is there any other way in visual studio 2008 that can make my code easy to identify and read? Please help… Thanks.
You should use
#regionfor this.#regionlets you specify a block of code that you can expand or collapse. Its a good option when you want to wrap up your code and give it some name.