Seems like XamlReader.Load(Stream stream) closes the stream internally.
Question is, does it always do that, regardless of whether there were any
exceptions?
or simply put, do I need a 'using' statement below?
Stream _stream = stream;
// using (Stream _stream = stream) {
this.Document = (Panel) XamlReader.Load(_stream);
// }
AlexS - 13 Jul 2007 00:44 GMT
Better be safe than sorry :)
> Seems like XamlReader.Load(Stream stream) closes the stream internally.
> Question is, does it always do that, regardless of whether there were any
[quoted text clipped - 6 lines]
> this.Document = (Panel) XamlReader.Load(_stream);
> // }