Home All Groups Group Topic Archive Search About

Visual Studio Wildcard Compiler Directives?

Author
20 Feb 2007 8:21 PM
lucius
Why can't I do this in C#:

using mynamespace.subspace.*;

?

Author
20 Feb 2007 9:23 PM
Michael Nemtsev
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) Michelangelo
Author
20 Feb 2007 9:38 PM
Jon Skeet [C# MVP]
Michael Nemtsev <nemt***@msn.com> wrote:
> 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...

--
Jon Skeet - <sk***@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
Author
20 Feb 2007 9:43 PM
Michael Nemtsev
Hello Jon Skeet [C# MVP],

J> Michael Nemtsev <nemt***@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

AddThis Social Bookmark Button