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

C#

 
GeneralRe: 'using' vs fully qualified types Pin
PIEBALDconsult18-Aug-07 11:35
mvePIEBALDconsult18-Aug-07 11:35 
GeneralRe: 'using' vs fully qualified types Pin
Colin Angus Mackay18-Aug-07 13:26
Colin Angus Mackay18-Aug-07 13:26 
GeneralRe: 'using' vs fully qualified types Pin
Colin Angus Mackay18-Aug-07 13:29
Colin Angus Mackay18-Aug-07 13:29 
GeneralRe: 'using' vs fully qualified types Pin
Mark Churchill18-Aug-07 16:05
Mark Churchill18-Aug-07 16:05 
AnswerRe: 'using' vs fully qualified types Pin
Keith Barrow18-Aug-07 3:12
professionalKeith Barrow18-Aug-07 3:12 
GeneralRe: 'using' vs fully qualified types Pin
Malcolm Smart18-Aug-07 1:12
Malcolm Smart18-Aug-07 1:12 
GeneralRe: 'using' vs fully qualified types Pin
PIEBALDconsult18-Aug-07 10:39
mvePIEBALDconsult18-Aug-07 10:39 
GeneralRe: 'using' vs fully qualified types Pin
Colin Angus Mackay18-Aug-07 13:36
Colin Angus Mackay18-Aug-07 13:36 
PIEBALDconsult wrote:
why then doesn't VS automagically add using directives as you type?


It pops up a smart tag and asks you what you want to do. There may be situations where you need the full name to disambiguate. It may not know which namespace to use if the class name is used in two separate namespaces, one of which you may not be interested in.


PIEBALDconsult wrote:
Such that if I type System.Diagnostics.StackFrame it could remove the System.Diagnostics. and add using System.Diagnostics at the top.


Because it doesn't know if that's what you really want. You may be planning to use another class called StackFrame elsewhere in your code but from a different namespace.


-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.

Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits


My website

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 
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 

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.