Tagged Questions
2
votes
1answer
90 views
Will this code lead to an object not being disposed?
Say I have the following code:
SPList promo1List = site.WebApplication.Sites[0].RootWeb.Lists.TryGetList("promotions");
Will this lead to the SPSite object Sites[0] not being disposed? I ran ...