Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: 'using' vs fully qualified types Pin
Colin Angus Mackay18-Aug-07 13:36
Colin Angus Mackay18-Aug-07 13:36 
GeneralRe: 'using' vs fully qualified types Pin
PIEBALDconsult18-Aug-07 18:40
mvePIEBALDconsult18-Aug-07 18:40 
GeneralRe: 'using' vs fully qualified types Pin
Colin Angus Mackay19-Aug-07 0:06
Colin Angus Mackay19-Aug-07 0:06 
AnswerRe: 'using' vs fully qualified types Pin
Paul Conrad18-Aug-07 3:29
professionalPaul Conrad18-Aug-07 3:29 
AnswerRe: 'using' vs fully qualified types Pin
Guffa18-Aug-07 6:24
Guffa18-Aug-07 6:24 
AnswerRe: 'using' vs fully qualified types Pin
Luc Pattyn18-Aug-07 7:43
sitebuilderLuc Pattyn18-Aug-07 7:43 
GeneralRe: 'using' vs fully qualified types Pin
PIEBALDconsult18-Aug-07 12:28
mvePIEBALDconsult18-Aug-07 12:28 
GeneralRe: 'using' vs fully qualified types Pin
Luc Pattyn18-Aug-07 12:53
sitebuilderLuc Pattyn18-Aug-07 12:53 
Hi,

I was under the impression things would not work at all without "using System;"
i.e. I thought the compiler would then be unable to map "int" to "System.Int32"
but clearly it can and does, without any "using System;"
Thanks for bringing that to my attention.

I have the habbit of removing usings I don't need, such as
System.Collections.Generic when I don't need any generic stuff.

but I use using statements all the time, and I tend to add a comment mentioning
the first Class that caused me to include the using statement.

For me the shorter form is the better one, for it improves readability.

But I can imagine situations where lots of namespaces would be required,
and then things could become hard to understand without full qualification.

The only such situation I encountered so far is about timers, having at least three
different classes called Timer in the Framework.


Greetings


Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: 'using' vs fully qualified types Pin
PIEBALDconsult18-Aug-07 18:49
mvePIEBALDconsult18-Aug-07 18:49 
AnswerRe: 'using' vs fully qualified types Pin
PIEBALDconsult18-Aug-07 9:52
mvePIEBALDconsult18-Aug-07 9:52 
GeneralRe: 'using' vs fully qualified types Pin
Colin Angus Mackay18-Aug-07 13:32
Colin Angus Mackay18-Aug-07 13:32 
GeneralRe: 'using' vs fully qualified types Pin
Mark Churchill18-Aug-07 16:10
Mark Churchill18-Aug-07 16:10 
GeneralRe: 'using' vs fully qualified types Pin
PIEBALDconsult18-Aug-07 18:37
mvePIEBALDconsult18-Aug-07 18:37 
AnswerRe: 'using' vs fully qualified types Pin
PIEBALDconsult18-Aug-07 18:53
mvePIEBALDconsult18-Aug-07 18:53 
QuestionProblem with text editor - Plz Help( need badly) Pin
Hum Dum17-Aug-07 22:07
Hum Dum17-Aug-07 22:07 
AnswerRe: Problem with text editor - Plz Help( need badly) Pin
Christian Graus17-Aug-07 22:42
protectorChristian Graus17-Aug-07 22:42 
AnswerRe: Problem with text editor - Plz Help( need badly) Pin
Luc Pattyn18-Aug-07 0:22
sitebuilderLuc Pattyn18-Aug-07 0:22 
QuestionHow to Access Main Class in Inner Class ... Pin
Doug.Chen17-Aug-07 21:43
Doug.Chen17-Aug-07 21:43 
AnswerRe: How to Access Main Class in Inner Class ... Pin
Hessam Jalali17-Aug-07 22:00
Hessam Jalali17-Aug-07 22:00 
AnswerRe: How to Access Main Class in Inner Class ... Pin
Christian Graus17-Aug-07 22:44
protectorChristian Graus17-Aug-07 22:44 
AnswerRe: How to Access Main Class in Inner Class ... Pin
Luc Pattyn18-Aug-07 0:26
sitebuilderLuc Pattyn18-Aug-07 0:26 
Questiontool tip in Close box Pin
topksharma198217-Aug-07 21:16
topksharma198217-Aug-07 21:16 
QuestionNo overload for method 'Open' takes '13' arguments.... Pin
shafikshafik17-Aug-07 20:49
shafikshafik17-Aug-07 20:49 
AnswerRe: No overload for method 'Open' takes '13' arguments.... Pin
Christian Graus17-Aug-07 20:57
protectorChristian Graus17-Aug-07 20:57 
AnswerRe: No overload for method 'Open' takes '13' arguments.... Pin
Luc Pattyn18-Aug-07 0:26
sitebuilderLuc Pattyn18-Aug-07 0:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.