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

C#

 
AnswerRe: How Do I Force A Mouse Movement And Click? Pin
Naveed7276-May-08 5:19
Naveed7276-May-08 5:19 
AnswerRe: How Do I Force A Mouse Movement And Click? Pin
Luc Pattyn6-May-08 6:16
sitebuilderLuc Pattyn6-May-08 6:16 
GeneralRe: How Do I Force A Mouse Movement And Click? [modified] Pin
qszwdxefc6-May-08 10:06
qszwdxefc6-May-08 10:06 
QuestionCannot find Mutex created in win service from win application Pin
Roman Muntyanu6-May-08 4:25
Roman Muntyanu6-May-08 4:25 
AnswerRe: Cannot find Mutex created in win service from win application Pin
Roman Muntyanu6-May-08 4:45
Roman Muntyanu6-May-08 4:45 
AnswerRe: Cannot find Mutex created in win service from win application Pin
S. Senthil Kumar6-May-08 4:51
S. Senthil Kumar6-May-08 4:51 
GeneralRe: Cannot find Mutex created in win service from win application Pin
Roman Muntyanu7-May-08 7:43
Roman Muntyanu7-May-08 7:43 
QuestionUsing "using" Pin
#realJSOP6-May-08 4:02
mve#realJSOP6-May-08 4:02 
I've seen a lot of code that looks something like the following:

using (using (FileStream fs = new FileStream(path, FileMode.Create, FileAccess.ReadWrite, FileShare.None))


I realize that this ensures that everything will be properly closed and disposed without you having to do anything, but doesn't the same thing happen when the object goes out of scope? Further, what about exception handling? Is that automatically handled as well?

Is it wrong to not want to sue this construct in favor of more obvious code?


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


AnswerRe: Using "using" Pin
Pete O'Hanlon6-May-08 4:17
mvePete O'Hanlon6-May-08 4:17 
GeneralRe: Using "using" Pin
N a v a n e e t h6-May-08 4:25
N a v a n e e t h6-May-08 4:25 
GeneralRe: Using "using" Pin
tgrt6-May-08 4:42
tgrt6-May-08 4:42 
GeneralRe: Using "using" Pin
Colin Angus Mackay6-May-08 4:48
Colin Angus Mackay6-May-08 4:48 
GeneralRe: Using "using" Pin
tgrt6-May-08 5:04
tgrt6-May-08 5:04 
GeneralRe: Using "using" Pin
LongRange.Shooter7-May-08 8:04
LongRange.Shooter7-May-08 8:04 
GeneralRe: Using "using" [modified] Pin
Pete O'Hanlon7-May-08 9:31
mvePete O'Hanlon7-May-08 9:31 
GeneralRe: Using "using" Pin
S. Senthil Kumar6-May-08 4:38
S. Senthil Kumar6-May-08 4:38 
GeneralRe: Using "using" Pin
Pete O'Hanlon6-May-08 8:58
mvePete O'Hanlon6-May-08 8:58 
GeneralRe: Using "using" Pin
led mike6-May-08 4:40
led mike6-May-08 4:40 
GeneralRe: Using "using" Pin
#realJSOP7-May-08 0:02
mve#realJSOP7-May-08 0:02 
GeneralRe: Using "using" Pin
Pete O'Hanlon7-May-08 9:36
mvePete O'Hanlon7-May-08 9:36 
GeneralRe: Using "using" Pin
Spacix One7-May-08 11:08
Spacix One7-May-08 11:08 
AnswerRe: Using "using" Pin
N a v a n e e t h6-May-08 4:23
N a v a n e e t h6-May-08 4:23 
AnswerRe: Using "using" Pin
led mike6-May-08 4:31
led mike6-May-08 4:31 
GeneralRe: Using "using" Pin
Roger Alsing6-May-08 7:10
Roger Alsing6-May-08 7:10 
AnswerRe: Using "using" Pin
Guffa6-May-08 4:37
Guffa6-May-08 4:37 

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.