<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.eqqon.com/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.eqqon.com/index.php?action=history&amp;feed=atom&amp;title=IDisposable</id>
		<title>IDisposable - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.eqqon.com/index.php?action=history&amp;feed=atom&amp;title=IDisposable"/>
		<link rel="alternate" type="text/html" href="http://www.eqqon.com/index.php?title=IDisposable&amp;action=history"/>
		<updated>2026-04-26T20:51:35Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://www.eqqon.com/index.php?title=IDisposable&amp;diff=253&amp;oldid=prev</id>
		<title>Henon: New page: Category:CSharp  = interface IDisposable = Objects that implement '''IDisposable''' can be used in the '''using''' statement. After the block ends, the object's '''Dispose'''-method is...</title>
		<link rel="alternate" type="text/html" href="http://www.eqqon.com/index.php?title=IDisposable&amp;diff=253&amp;oldid=prev"/>
				<updated>2007-10-28T19:44:15Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &lt;a href=&quot;/index.php/Category:CSharp&quot; title=&quot;Category:CSharp&quot;&gt;Category:CSharp&lt;/a&gt;  = interface IDisposable = Objects that implement &amp;#39;&amp;#39;&amp;#39;IDisposable&amp;#39;&amp;#39;&amp;#39; can be used in the &amp;#39;&amp;#39;&amp;#39;using&amp;#39;&amp;#39;&amp;#39; statement. After the block ends, the object&amp;#39;s &amp;#39;&amp;#39;&amp;#39;Dispose&amp;#39;&amp;#39;&amp;#39;-method is...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:CSharp]]&lt;br /&gt;
&lt;br /&gt;
= interface IDisposable =&lt;br /&gt;
Objects that implement '''IDisposable''' can be used in the '''using''' statement. After the block ends, the object's '''Dispose'''-method is guaranteed to be called. Note: The object's destructor is not guaranteed to be called immediately.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
&lt;br /&gt;
public class Resource : IDisposable&lt;br /&gt;
{&lt;br /&gt;
	public void Dispose() &lt;br /&gt;
	{&lt;br /&gt;
		Console.WriteLine(&amp;quot;Disposed&amp;quot;);&lt;br /&gt;
	}&lt;br /&gt;
	~Resource() {&lt;br /&gt;
		Console.WriteLine(&amp;quot;~Resource&amp;quot;);&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public class Program &lt;br /&gt;
{&lt;br /&gt;
	public static void Main() &lt;br /&gt;
	{&lt;br /&gt;
		using( Resource h = new Resource()) {&lt;br /&gt;
			Console.WriteLine(&amp;quot;Inside using block&amp;quot;);&lt;br /&gt;
		}&lt;br /&gt;
		Console.WriteLine(&amp;quot;After using block&amp;quot;);&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Program output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Inside using block&lt;br /&gt;
Disposed&lt;br /&gt;
After using block&lt;br /&gt;
~Resource&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henon</name></author>	</entry>

	</feed>