Answer the question
In order to leave comments, you need to log in
Why does Visual Studio highlight the namespace as in use?
Hello!
In my project, visual studio highlights the System.Data namespace as being used, although if there are no errors commented out, please tell me why this happens? Can other namespaces affect this?
Answer the question
In order to leave comments, you need to log in
The namespace is needed for functions, classes, or something else.
Were not in the same space. That is, in order for the conclusion to be unambiguous.
When you comment on a namespace, you shove all your goodness into the global space.
And if in the global space there are, for example: two functions with the same name, and you try to call one, an error will occur, because the space is global and which of these functions to take is not clear to the compiler ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question