Пример #1
0
        public static WeakReference GetWeakReferenceFromPool(object target)
        {
#if ENABLE_OBJ_POOL
            return(WeakReferencePool.GetFromPool(target));
#else
            return(new WeakReference(target));
#endif
        }