public void DestroyContentCollection(ref PageContentCollection coll) { IPageContentCollectionFactory fact = GetContentCollectionFactory(coll.Type); if (fact != null) { fact.DestroyInstance(ref coll); } else { coll.SafeDispose(); //normally a safe fallback } }
public void DestroyInstance( ref PageContentCollection c ) { c.SafeDispose(); }
public void DestroyInstance(ref PageContentCollection c) { c.SafeDispose(); }
public void DestroyContentCollection( ref PageContentCollection coll ) { IPageContentCollectionFactory fact = GetContentCollectionFactory( coll.Type ); if ( fact != null ) { fact.DestroyInstance( ref coll ); } else { coll.SafeDispose(); //normally a safe fallback } }