G
Guest
Hi,
I am amazed that XmlTextReader does not implement IDispoable. Is there any
reason?
In the case of XmlTextReader( Stream ) construction, if I wrap the Stream
with a C# using statement like this:
using( StringStream ss = new StringStream.... )
{
XmlTextReader xr = new XmlTextReader( ss );
// ... use xr
}
Will this upset the XmlTextReader's finalizer because that would be executed
non-deterministically long after ss has been disposed?
If inside the using() loop, I called XmlTextReader.Close(), will this upset
the ss.Dispose() call?
Thanks.
Leon
I am amazed that XmlTextReader does not implement IDispoable. Is there any
reason?
In the case of XmlTextReader( Stream ) construction, if I wrap the Stream
with a C# using statement like this:
using( StringStream ss = new StringStream.... )
{
XmlTextReader xr = new XmlTextReader( ss );
// ... use xr
}
Will this upset the XmlTextReader's finalizer because that would be executed
non-deterministically long after ss has been disposed?
If inside the using() loop, I called XmlTextReader.Close(), will this upset
the ss.Dispose() call?
Thanks.
Leon