By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,465 Members | 1,435 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,465 IT Pros & Developers. It's quick & easy.

Import Namespace

P: n/a
In vb.net its possible import a namespace into a project so you don't need
to add it to the top of every class. Is there a way to do this in c# on a
project level?
Mar 31 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Not really available for the entire project. But you can place the using
statement within the namespace. Doing so, you won't have to repeat that
statement anywhere else in the namespace. See the last example at
http://msdn.microsoft.com/library/de...gDirective.asp

Generally i prefer to place the using directive at the very top of the file,
outside of the namespace, but that's up to you :)

Sayed Ibrahim Hashimi
www.sedodream.com
"moondaddy" wrote:
In vb.net its possible import a namespace into a project so you don't need
to add it to the top of every class. Is there a way to do this in c# on a
project level?

Mar 31 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.