Click here to Skip to main content
16,010,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: COORDINATES NOT CENTERED? Pin
Anonymous5-Jun-05 9:07
Anonymous5-Jun-05 9:07 
AnswerRe: COORDINATES NOT CENTERED? Pin
Carsten Zeumer5-Jun-05 8:09
Carsten Zeumer5-Jun-05 8:09 
Generalnew removable storage media Pin
heikogerdd5-Jun-05 6:13
heikogerdd5-Jun-05 6:13 
GeneralRe: new removable storage media Pin
Anonymous5-Jun-05 15:51
Anonymous5-Jun-05 15:51 
Generalsave drop down box items in a text file Pin
Farhad Eft5-Jun-05 5:41
Farhad Eft5-Jun-05 5:41 
GeneralRe: save drop down box items in a text file Pin
Carsten Zeumer5-Jun-05 5:47
Carsten Zeumer5-Jun-05 5:47 
GeneralRe: save drop down box items in a text file Pin
S. Senthil Kumar5-Jun-05 6:24
S. Senthil Kumar5-Jun-05 6:24 
GeneralRe: save drop down box items in a text file Pin
Carsten Zeumer5-Jun-05 6:43
Carsten Zeumer5-Jun-05 6:43 
Yup, I know this is true for the StreamWriter (and should be for any class implementing the IDisposable interface).
I just can't get rid of the habit to be on the safe side.

And sometimes i have something like this:
using (x)
{
 using(x.y)
 {
   x.Close();
 }
}


by calling the x.Close i simply free the resource as soon as i do no longer need it, not as soon as the finally of the using statement is reached.

And finally you never know if the IDisposable.Dispose actually does implement all the stuff you expect it to contain.

OK, your are right... it is redundant Wink | ;) (but i still have my points!)

/cadi

24 hours is not enough
GeneralRe: save drop down box items in a text file Pin
S. Senthil Kumar5-Jun-05 6:55
S. Senthil Kumar5-Jun-05 6:55 
GeneralRe: save drop down box items in a text file Pin
Carsten Zeumer5-Jun-05 8:02
Carsten Zeumer5-Jun-05 8:02 
Generalif a certain item exist in a drop down box Pin
Farhad Eft5-Jun-05 5:29
Farhad Eft5-Jun-05 5:29 
GeneralRe: if a certain item exist in a drop down box Pin
S. Senthil Kumar5-Jun-05 6:54
S. Senthil Kumar5-Jun-05 6:54 
GeneralRe: if a certain item exist in a drop down box Pin
Farhad Eft5-Jun-05 10:42
Farhad Eft5-Jun-05 10:42 
GeneralRe: if a certain item exist in a drop down box [edited] Pin
DavidNohejl5-Jun-05 12:15
DavidNohejl5-Jun-05 12:15 
Questionc# and exchange ? Pin
Tee+5-Jun-05 4:44
Tee+5-Jun-05 4:44 
AnswerRe: c# and exchange ? Pin
Nick Parker5-Jun-05 9:10
protectorNick Parker5-Jun-05 9:10 
GeneralRe: c# and exchange ? Pin
Tee+5-Jun-05 17:29
Tee+5-Jun-05 17:29 
GeneralRe: c# and exchange ? Pin
Corinna John6-Jun-05 1:15
Corinna John6-Jun-05 1:15 
GeneralDataset insert new row Pin
webhay5-Jun-05 2:11
webhay5-Jun-05 2:11 
Generaluse DefWindowProc in c# Pin
Sasuko5-Jun-05 0:55
Sasuko5-Jun-05 0:55 
GeneralRe: use DefWindowProc in c# Pin
Carsten Zeumer5-Jun-05 3:35
Carsten Zeumer5-Jun-05 3:35 
GeneralRe: use DefWindowProc in c# Pin
Sasuko5-Jun-05 4:36
Sasuko5-Jun-05 4:36 
GeneralRe: use DefWindowProc in c# Pin
Carsten Zeumer5-Jun-05 5:22
Carsten Zeumer5-Jun-05 5:22 
GeneralRe: use DefWindowProc in c# Pin
DavidNohejl5-Jun-05 6:23
DavidNohejl5-Jun-05 6:23 
GeneralRe: use DefWindowProc in c# Pin
Carsten Zeumer5-Jun-05 6:33
Carsten Zeumer5-Jun-05 6:33 

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.