Close, but there are some important inaccuracies.
First I'd recommend anyone that doesn't clearly understand GC and
IDisposable to read both "Effective C#" by Bill Wagner for an excellent,
clear explanation and (for C# developers) "CLR via C#" by Jeffrey
Richter For all the gory details. "Framewor
On Wed, Jun 16, 2010 at 9:30 AM, Mark Hurd wrote:
> This is identical to the code added by VB.NET when you implement IDisposable.
Or at least nearly identical. VB.NET also makes sure subsequent calls
to Dispose don't fail.
--
Regards,
Mark Hurd, B.Sc.(Ma.)(Hons.)
On Tue, Jun 15, 2010 at 6:31 PM, Glen Harvy wrote:
>
> The argument has been put that the GC will do it and Finalizers (are they
> the same as Destructors - I don't think so) handle it for you so why even
They are the same or your code below wouldn't work properly.
> bother. Ok - why bother eve
On 15 June 2010 14:20, Corneliu I. Tusnea wrote:
> I had a Dell XPS 16 Core i7 + 8Gb Ram + SSD (aftermarket) and returned it
> back to Dell after 4 months of use due to incredible heating and constant
> crashing. The laptop has a design flaw that the vents get covered by the
> screen as you open i
Hi Folks
I am currenly working on an application website for our company. Our
marketing group want to beable to add pages and other stuff to the website
on the fly.
So - I am looking recommendations fo a CMS system that non-web literate
folks can use easily. I have had a look at Umbraco and have h
I've never understood much of the theory either however I have had some
bad experiences with not implementing IDisposable and adding the bellow
mentioned code to all my classes. That is, the GC does everything when
it want's to ie when it has time to do it - it is not top priority. That
means t
On Tue, Jun 15, 2010 at 4:23 PM, Bec Carter wrote:
> Hmmm after thinking about it more carefully the temp stuff should be
> contained to a single method so the try/finally seems like the
> simplest solution.
Depends on the lifetime of your object.
If it's just a method then your proposed approac
Given SafeHandles these days, it should be rare that you actually implement a
finalizer - especially if dealing with Windows handles/resources.
From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On
Behalf Of Joseph Clark
Sent: Monday, June 14, 2010 11:50 PM
To: ozDotNet
Su