I have read this article and known which objects should be disposed. But I doubt whether oItem.Web returns the same object as spcontext.current.web object or it creates new one. If it creates new, I should dispose it. Is oItem.Web equal spcontext.current.web ?
Edit:
public static void SomeMethod(SPListItem currentItem)
{
using (SPWeb currentWeb = currentItem.Web)
{
/***/
}
}
Is it correct ? Or I need to use SPWeb currentWeb = currentItem.Web // without using cause
