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

C#

 
GeneralRe: display the machine time in a textbox Pin
Not Active18-Aug-07 10:22
mentorNot Active18-Aug-07 10:22 
GeneralRe: display the machine time in a textbox Pin
Muammar©18-Aug-07 20:12
Muammar©18-Aug-07 20:12 
GeneralRe: display the machine time in a textbox Pin
Muammar©18-Aug-07 20:19
Muammar©18-Aug-07 20:19 
GeneralRe: display the machine time in a textbox Pin
yoaz21-Aug-07 9:31
yoaz21-Aug-07 9:31 
QuestionPrevent DataGridView to move to next row after edit? Pin
Dragan Matic18-Aug-07 0:25
Dragan Matic18-Aug-07 0:25 
AnswerRe: Prevent DataGridView to move to next row after edit? Pin
Muammar©18-Aug-07 9:46
Muammar©18-Aug-07 9:46 
GeneralRe: Prevent DataGridView to move to next row after edit? Pin
Dragan Matic19-Aug-07 0:31
Dragan Matic19-Aug-07 0:31 
Question'using' vs fully qualified types Pin
Malcolm Smart18-Aug-07 0:22
Malcolm Smart18-Aug-07 0:22 
C++ but applied equally, if not more so to C#...

On a recent contract I added a
<br />
using MynameSpace.MyStuff <br />

to the header and proceeded to use my classes. I got a roasting for the using 'using'. Some nobby quote like "If god had meant for us to use 'using' he wouldn't have given us namespaces'. I can see how 'using' can stop the prevention of name collision, but it does help in the speed of development.
<br />
System.Drawing.Color myColor1 = System.Drawing.Color.Red;<br />
System.Drawing.Color myColor2 = System.Drawing.Color.Green;<br />
System.Drawing.Color myColor3 = System.Drawing.Color.Blue;<br />

or
<br />
using System.Drawing;<br />
<br />
Color myColor1 = Color.Red;<br />
Color myColor2 = Color.Green;<br />
Color myColor3 = Color.Blue;<br />

Does anybody have any tips / hints /preferences when 'using' is ok, and when to use fully qualified types. Do you use 'using' for the framework and fully qualified for your own? A mixture of both?


"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF


"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.

AnswerRe: 'using' vs fully qualified types Pin
Christian Graus18-Aug-07 0:52
protectorChristian Graus18-Aug-07 0:52 
GeneralRe: 'using' vs fully qualified types Pin
Malcolm Smart18-Aug-07 0:54
Malcolm Smart18-Aug-07 0:54 
GeneralRe: 'using' vs fully qualified types Pin
PIEBALDconsult18-Aug-07 10:22
mvePIEBALDconsult18-Aug-07 10:22 
GeneralRe: 'using' vs fully qualified types Pin
Christian Graus18-Aug-07 11:25
protectorChristian Graus18-Aug-07 11:25 
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 
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 

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.