I am currently getting a SPListItemCollection in this way:
SPContext.Current.Web.List("Multimedia").GetItems(query)
According to a Microsoft article, “SPContext objects are managed by the SharePoint framework and should not be explicitly disposed in your code.”
My question is -should I enclose the above code within a using block? Or shouldn’t I, considering that it comes from an SPContext object? Thank you.
It is not even about SPContext – SPListItemCollection does not implement IDisposable and can’t be disposed.
Unless I am not getting your question correctly?