示例#1
0
        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();
 }
示例#4
0
		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
			}
		}