Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
AnswerRe: Running .NET application through LAN Pin
Gideon Engelberth12-Dec-08 6:33
Gideon Engelberth12-Dec-08 6:33 
QuestionApp.config or Resources.resx Pin
Vandretta12-Dec-08 0:28
Vandretta12-Dec-08 0:28 
AnswerRe: App.config or Resources.resx Pin
Lev Danielyan12-Dec-08 0:36
Lev Danielyan12-Dec-08 0:36 
GeneralRe: App.config or Resources.resx Pin
Vandretta12-Dec-08 0:38
Vandretta12-Dec-08 0:38 
GeneralRe: App.config or Resources.resx Pin
Simon P Stevens12-Dec-08 0:43
Simon P Stevens12-Dec-08 0:43 
GeneralRe: App.config or Resources.resx Pin
Lev Danielyan12-Dec-08 1:08
Lev Danielyan12-Dec-08 1:08 
QuestionDispsose() or Close() Pin
TJS4u12-Dec-08 0:08
TJS4u12-Dec-08 0:08 
AnswerRe: Dispsose() or Close() Pin
Simon P Stevens12-Dec-08 0:20
Simon P Stevens12-Dec-08 0:20 
TJS4u wrote:
this.


Well it depends what Type "this" is.

In some cases Streams/IO and such, they are fairly comparable. Dispose will normally call close. If an object is disposable you should always call dispose when you are finished with it to ensure the finaliser is suppressed. Normally it's ok to just call dispose, but there is no harm in closing explicitly first just to be safe.

For some types of objects, like Forms, close has a specific meaning. Close() will close the form. Dispose will probably also call close, but in many cases you may want to close the form, but still keep the object to do some work with before you are ready to dispose of it.

Simon

AnswerRe: Dispsose() or Close() Pin
Lev Danielyan12-Dec-08 0:24
Lev Danielyan12-Dec-08 0:24 
AnswerRe: Dispsose() or Close() Pin
Expert Coming12-Dec-08 0:55
Expert Coming12-Dec-08 0:55 
AnswerRe: Dispsose() or Close() Pin
Giorgi Dalakishvili12-Dec-08 1:34
mentorGiorgi Dalakishvili12-Dec-08 1:34 
AnswerRe: Dispsose() or Close() Pin
carbon_golem12-Dec-08 2:49
carbon_golem12-Dec-08 2:49 
QuestionWinFrom help.... Pin
hotthoughtguy11-Dec-08 23:43
hotthoughtguy11-Dec-08 23:43 
AnswerRe: WinFrom help.... Pin
Christian Graus11-Dec-08 23:44
protectorChristian Graus11-Dec-08 23:44 
GeneralRe: WinFrom help.... Pin
hotthoughtguy11-Dec-08 23:49
hotthoughtguy11-Dec-08 23:49 
GeneralRe: WinFrom help.... Pin
Lev Danielyan11-Dec-08 23:57
Lev Danielyan11-Dec-08 23:57 
GeneralRe: WinFrom help.... Pin
Tom Deketelaere11-Dec-08 23:53
professionalTom Deketelaere11-Dec-08 23:53 
GeneralRe: WinFrom help.... Pin
Lev Danielyan11-Dec-08 23:54
Lev Danielyan11-Dec-08 23:54 
GeneralRe: WinFrom help.... Pin
hotthoughtguy12-Dec-08 2:40
hotthoughtguy12-Dec-08 2:40 
GeneralRe: WinFrom help.... Pin
Lev Danielyan12-Dec-08 2:58
Lev Danielyan12-Dec-08 2:58 
GeneralRe: WinFrom help.... Pin
#realJSOP12-Dec-08 0:01
mve#realJSOP12-Dec-08 0:01 
GeneralRe: WinFrom help.... Pin
hotthoughtguy12-Dec-08 2:53
hotthoughtguy12-Dec-08 2:53 
AnswerRe: WinFrom help.... Pin
DaveyM6912-Dec-08 4:56
professionalDaveyM6912-Dec-08 4:56 
QuestionHow to convert ArrayList into String Array ? Pin
Ravi Munde11-Dec-08 23:40
Ravi Munde11-Dec-08 23:40 
AnswerRe: How to convert ArrayList into String Array ? Pin
Christian Graus11-Dec-08 23:46
protectorChristian Graus11-Dec-08 23:46 

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.