.net - Should the result of PackagePart.GetStream() be disposed? -
should caller of packagepart.getstream dispose returned stream object? or method return object reused? documentation doesn't say.
looking @ .net source code, every place calling getstream()
disposes result, either directly or indirectly. best guess @ answer result of getstream() can disposed, doesn't have if parent packagepart disposed.
Comments
Post a Comment