Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

Visual Studio Wildcard Compiler Directives?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lucius - 20 Feb 2007 20:21 GMT
Why can't I do this in C#:

using mynamespace.subspace.*;

?
Michael Nemtsev - 20 Feb 2007 21:23 GMT
Hello lucius,

l> Why can't I do this in C#:
l> using mynamespace.subspace.*;

U can and it works well.

---
WBR,  Michael  Nemtsev [C# MVP].  
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangel
Jon Skeet [C# MVP] - 20 Feb 2007 21:38 GMT
> l> Why can't I do this in C#:
> l> using mynamespace.subspace.*;
>
> U can and it works well.

Not that I know of - the spec doesn't say any such thing, and the
compiler complains with "Identifier expected".

Personally I have no problems with it working the way it does, I only
with Visual Studio made it as easy to work with using directives as
Eclipse makes it to work with import statements...

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

Michael Nemtsev - 20 Feb 2007 21:43 GMT
Hello Jon Skeet [C# MVP],

J> Michael Nemtsev <nemtsev@msn.com> wrote:
J>
>> l> Why can't I do this in C#:
>> l> using mynamespace.subspace.*;
>> U can and it works well.

J> Not that I know of - the spec doesn't say any such thing, and the
J> compiler complains with "Identifier expected".
J>
J> Personally I have no problems with it working the way it does, I only
J> with Visual Studio made it as easy to work with using directives as
J> Eclipse makes it to work with import statements...

Yep, misunderstand OP a little bit :)

---
WBR,  Michael  Nemtsev [C# MVP].  
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.