KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Should I call .Dispose() after returning an object that implements IDisposable? myDisposableObject Gimme() { //Code return disposableResult; disposableResult.Dispose(); } In other words, is the object I return a copy, or is it the object itself? Thanks :)
Tags (comma-separated)
Save Edits
Cancel