Home Dashboard Directory Help
Search

Use type when type name and namespace name clash gives error cs0118 by Herman2


Status: 

Closed
 as Won't Fix Help for as Won't Fix


7
0
Sign in
to vote
Type: Suggestion
ID: 310861
Opened: 11/17/2007 6:23:45 AM
Access Restriction: Public
0
Workaround(s)
view

Description

Error cs0118: <namespace> is a 'namespace' but is used like a 'type' is raised when a namespace has the same name as a class and is used from the parent namespace. I suggest using the type when it is available.
Details
Sign in to post a comment.
Posted by Microsoft on 4/24/2008 at 4:42 PM
Thanks again for your suggestion. After having done feature planning for the next release of C# I regret to say that this feature is not being added. We have to do some harsh prioritization, both because of our implementation and testing resources, but also because we need to keep the number of new langauge features at a manageable level - depending on how you count, we are adding only four language features to C# this time around. Unfortunately many great suggestions just can't make it in because of that.

I apologize that this is a "canned" follow-up answer, sent out as a result of our feature planning for the next release. In most cases I or someone else already replied individually to your suggestion - please let us know if you feel it hasn't been adequately addressed.

Thanks again for taking the time to share your ideas with us. Please keep them coming!

Mads Torgersen, C# Language PM.
Posted by Microsoft on 2/4/2008 at 11:38 AM
Thanks for the suggestion for Visual Studio 2008!

We are doing our feature planning now for the next version of the C# language and will soon be investigating all of our active language suggestions. If you have any further information about this suggestion, please add a comment.

Alex Turner
Program Manager
Visual C# Compiler
Sign in to post a workaround.