Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: Divergences with co workers about IDisposable Pin
User 1106097919-Sep-19 5:16
User 1106097919-Sep-19 5:16 
GeneralRe: Divergences with co workers about IDisposable Pin
Richard Deeming19-Sep-19 5:28
mveRichard Deeming19-Sep-19 5:28 
GeneralRe: Divergences with co workers about IDisposable Pin
User 1106097919-Sep-19 5:36
User 1106097919-Sep-19 5:36 
GeneralRe: Divergences with co workers about IDisposable Pin
Gerry Schmitz19-Sep-19 9:58
mveGerry Schmitz19-Sep-19 9:58 
GeneralRe: Divergences with co workers about IDisposable Pin
User 1106097919-Sep-19 10:03
User 1106097919-Sep-19 10:03 
GeneralRe: Divergences with co workers about IDisposable Pin
Gerry Schmitz19-Sep-19 12:36
mveGerry Schmitz19-Sep-19 12:36 
GeneralRe: Divergences with co workers about IDisposable Pin
User 1106097920-Sep-19 8:11
User 1106097920-Sep-19 8:11 
SuggestionRe: Divergences with co workers about IDisposable Pin
Maciej Los19-Sep-19 20:51
mveMaciej Los19-Sep-19 20:51 
I'm lazy, so... Please, read this very interesting CP article: Implementing IDisposable and the Dispose Pattern Properly

There you'll find final conclusion:
Quote:
As you can see, there are a lot of details involved in properly implementing IDisposable and the Dispose Pattern. However, by following the proper template and rules, you can ensure that your disposable objects are handled correctly and behave as first-class citizens in the garbage collection process.


But Eric Lippert in this article: When everything you know is wrong, part one | Fabulous adventures in coding has got another one:
Quote:
I’ve written a lot about the perils of C# finalizers / destructors (either name is fine) over the years...

... here are a bunch of things that many people believe about finalizers, all of which are wrong.

...

All of the myths so far imply that if you have code that absolutely, positively must run because it has some important real-world impact then a finalizer is not your best choice. Finalizers are not guaranteed to run.

GeneralRe: Divergences with co workers about IDisposable Pin
User 1106097920-Sep-19 5:37
User 1106097920-Sep-19 5:37 
AnswerRe: Divergences with co workers about IDisposable Pin
#realJSOP22-Sep-19 3:28
mve#realJSOP22-Sep-19 3:28 
QuestionHow to connect to a remote windows service Pin
Mahmoud EL-Shazly18-Sep-19 20:51
Mahmoud EL-Shazly18-Sep-19 20:51 
AnswerRe: How to connect to a remote windows service Pin
F-ES Sitecore19-Sep-19 0:20
professionalF-ES Sitecore19-Sep-19 0:20 
AnswerRe: How to connect to a remote windows service Pin
Afzaal Ahmad Zeeshan19-Sep-19 2:08
professionalAfzaal Ahmad Zeeshan19-Sep-19 2:08 
GeneralRe: How to connect to a remote windows service Pin
Mahmoud EL-Shazly19-Sep-19 5:22
Mahmoud EL-Shazly19-Sep-19 5:22 
GeneralRe: How to connect to a remote windows service Pin
Afzaal Ahmad Zeeshan19-Sep-19 6:34
professionalAfzaal Ahmad Zeeshan19-Sep-19 6:34 
QuestionC# Insert TextBox Text into MS Database Pin
DreyerVorster18-Sep-19 10:20
DreyerVorster18-Sep-19 10:20 
AnswerRe: C# Insert TextBox Text into MS Database Pin
Mycroft Holmes18-Sep-19 12:37
professionalMycroft Holmes18-Sep-19 12:37 
GeneralRe: C# Insert TextBox Text into MS Database Pin
DreyerVorster18-Sep-19 19:27
DreyerVorster18-Sep-19 19:27 
AnswerRe: C# Insert TextBox Text into MS Database Pin
jkirkerx18-Sep-19 12:51
professionaljkirkerx18-Sep-19 12:51 
AnswerRe: C# Insert TextBox Text into MS Database Pin
Gerry Schmitz19-Sep-19 0:38
mveGerry Schmitz19-Sep-19 0:38 
QuestionHighest Number of a folder Pin
Member 1398003216-Sep-19 20:07
Member 1398003216-Sep-19 20:07 
AnswerRe: Highest Number of a folder Pin
OriginalGriff16-Sep-19 20:37
mveOriginalGriff16-Sep-19 20:37 
GeneralRe: Highest Number of a folder Pin
Member 1398003216-Sep-19 21:46
Member 1398003216-Sep-19 21:46 
GeneralRe: Highest Number of a folder Pin
OriginalGriff16-Sep-19 21:59
mveOriginalGriff16-Sep-19 21:59 
GeneralRe: Highest Number of a folder Pin
Member 1398003216-Sep-19 22:05
Member 1398003216-Sep-19 22:05 

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.