public static T Cast <T>(object obj) where T : class { CAssert.IsNotNull(obj); CAssert.IsInstanceOfType <T>(obj); return(obj as T); }
public virtual void Recycle(CObjectsPoolEntry e) { CAssert.IsInstanceOfType <T>(e); CAssert.AreSame(this, e.pool); AddLastItem(e); }