<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Destructors and Finalization revisited</title><link>http://blogs.msdn.com/ericgu/archive/2004/01/20/60728.aspx</link><description>Most of the commentors on my destructors and finalizers post figured out the reason why we went with the destructor syntax - so that we could ensure that the base class destructor gets called. A few comments on the comments: Jeroen Frijters has some comments</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Destructors and Finalization revisited</title><link>http://blogs.msdn.com/ericgu/archive/2004/01/20/60728.aspx#60784</link><pubDate>Tue, 20 Jan 2004 20:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:60784</guid><dc:creator>Tom Welch</dc:creator><description>Ultimately, the programmer is going to have to remember to do the things he HAS to do.  My only thought here is to make what HAS to be done as straight-forward and consistent as possible.  Since all CLR languages do not treat destructors in the same manner the problem has become inconsistent and obfuscated.  In my opinion, it would have been much better for each class to override a Close() method from Object to close open resources before finalization or destruction.&lt;br&gt;&lt;br&gt;Besides, most of the time you need to Close() resources before letting the object sit in the GC pool awaiting destruction.  ADO.NET XxxConnection classes are a prime example.  Heaven help you if you forget to Close() explicitly.&lt;br&gt;&lt;br&gt;I applaud the decision to use the same keywords when there were subtle differences.  The last thing we need is to try to explain that 'create' is just like 'new' except yada, yada, yada.&lt;br&gt;&lt;br&gt;As for the format, I greatly appreciate the &amp;quot;why does C# do this?&amp;quot; format.  It gets the mind working.  I'd rather try to figure it out, get it wrong, and then learn why rather than read something and take it for granted.</description></item><item><title>re: Destructors and Finalization revisited</title><link>http://blogs.msdn.com/ericgu/archive/2004/01/20/60728.aspx#61033</link><pubDate>Wed, 21 Jan 2004 10:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:61033</guid><dc:creator>Christian Nagel</dc:creator><description>Tom, I prefer having different keywords Close and Dispose. Classes that we are used to closing have a Close method in addition to Dispose. &lt;br&gt;With the ADO.NET connection classes you mentioned, these classes have a different behavior with Close and Dispose.</description></item></channel></rss>