commonspace | web client for running public life studies | Development Tools library
kandi X-RAY | commonspace Summary
kandi X-RAY | commonspace Summary
CommonSpace is an app and web client for running public life studies
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of commonspace
commonspace Key Features
commonspace Examples and Code Snippets
Community Discussions
Trending Discussions on commonspace
QUESTION
Following is my code for a .NET Core app.
CommonSpace.cs
...ANSWER
Answered 2019-Mar-18 at 08:26How do i make use of classes exposed by the System.IO, System.Text.RegularExpressions namespaces from CommonSpace.
You can't: the language specification is that using
statements have a scope limited to the compilation unit or namespace body in which they are declared. In practice this means they are never visible outside the file where the declaration is, and in the case of your CommonSpace
they are scoped to within the curly braces.
More details in the C# language specification
There is a good reason for this: if you want to know which namespace the class in a piece of code is using, it is right there in the file. There would be no end of problems with name clashes if all the using directives from elsewhere were leaking into your namespace.
If you really have too many using directives in your file, then your design is probably wrong, you should split your classes into smaller units.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install commonspace
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page