Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

A couple of questions

$
0
0

I've noticed that both Visual C# and SharpDevelop generate the namespace line in your code, although Mr. Schildt leaves that out in my book. Is it considered good programming practice to always have that namespace line in your code? Or do you guys leave it out?

In Java, the name of the class and the name of the source file are the same. I would like to do the same in C#. So would I have to always just use the backspace key and delete the current name of the class and then rename it so it matches the name of my file? Or is there another way, like maybe a template, that I could use that would insure that SharpDevelop makes the class name the same as the name of my source file?


Viewing all articles
Browse latest Browse all 1764

Trending Articles