[Mono-devel-list] Scoping of Readers

David Sheldon dave-monolist at earth.li
Sun Jan 11 08:41:32 EST 2004


On Sun, Jan 11, 2004 at 01:36:20PM +0100, Chris Turchin wrote:
> Hi David,
> 
> You can avoid this problem by using the 'using' statement when working
> with objects implementing the IDisposable interface (reader/writers
> being a prime example):

Thanks, that is definitely something to know. However the example I
actually have is using an XmlTextReader, which sadly does not implement
IDisposable.

David

-- 
"I don't know what'll happen when you run this code, but hey it compiles so 
it's probably alright" -- tom



More information about the Mono-devel-list mailing list