using-directives Questions

1

Solved

In C#, there are three types of using directives: using System; // Specify Namespace using Diag = System.Diagnostics; // Specify Namespace Alias using DBG = System.Diagnostics.Debug; // Specify Cl...
Crippen asked 1/12, 2010 at 19:17

2

#include <iostream> #include <cmath> #include <vector> using namespace std; int square(int a){ return a*a; } struct Point{ int x,y; }; int distance (const Point& a,...

4

Solved

On MSDN I can read what it does, but I would like to know what it does technically (tells compiler where to look for types..)? I mean using as a directive.
Eloquent asked 21/10, 2010 at 20:47

4

Solved

Visual Studio 2008 got two great features for c#, which is called "sort using directives" and "remove unused using directives". I'd like to call the "sort using directives" every time I format the...

3

Solved

Sorry for this silly question, but is there any way to restrict using directives to the current file so that they don't propagate to the files that #include this file?
Excitability asked 5/4, 2010 at 8:44

12

Solved

This question may be a duplicate, but I can't find a good answer. Short and simple, what requires me to declare using namespace std; in C++ programs?
Whitherward asked 7/2, 2010 at 20:11

5

Solved

Right, I've usually used 'using' directives as follows using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AwesomeLib { //awesome award winning class ...
Expansive asked 8/1, 2010 at 9:2

1

Solved

When I use ReSharper to add a using directive (using Alt+Enter) it removes "unnecessary" parts of the namespace. I prefer using the full namespace which is also the behavior of Visual Studio. Exa...
Hackamore asked 26/12, 2009 at 22:9

3

Solved

In VB.Net you can do something like the following without any issues... just ignore the fact that this is a pretty useless class :-) Imports System Public Class Class1 Public Shared Function Ar...
Prospective asked 22/8, 2009 at 5:51

6

Solved

If I have a namespace like: namespace MyApp.Providers { using System; using System.Collections.Generic; using System.Configuration; using System.Globalization; } Does this mean that if I c...
Sushi asked 20/7, 2009 at 22:1

7

Solved

I saw this C# using statement in a code example: using StringFormat=System.Drawing.StringFormat; What's that all about?
Colis asked 23/6, 2009 at 20:44

6

Solved

After someone creates a DLL in C# using the Microsoft Visual development environment, how would another programmer take that code, make a new project that includes the DLL's source and make a GUI t...
Ligniform asked 16/3, 2009 at 22:31

3

Solved

Why does Visual Studio 2008 automatically insert the following using directives into each new C# file I create? using System; using System.Collections.Generic; using System.Text; What's so spe...
Stamey asked 16/3, 2009 at 16:1

3

Solved

I've been using ReSharper for the past months and, advertising aside, I can't see myself coding without it. Since I love living on the bleeding "What the hell just went wrong" edge, I decided...
Apraxia asked 30/12, 2008 at 5:44

2

Solved

I was wondering if there is some option to keep ReSharper from removing just the using System; directive? Perhaps this is configurable somewhere? Also, is there a way to have ReSharper sort the re...
Laomedon asked 10/12, 2008 at 13:19

© 2022 - 2024 — McMap. All rights reserved.