Ejemplo n.º 1
0
        public static T Cast <T>(object obj) where T : class
        {
            CAssert.IsNotNull(obj);
            CAssert.IsInstanceOfType <T>(obj);

            return(obj as T);
        }
Ejemplo n.º 2
0
        public virtual void Recycle(CObjectsPoolEntry e)
        {
            CAssert.IsInstanceOfType <T>(e);
            CAssert.AreSame(this, e.pool);

            AddLastItem(e);
        }