/// <summary> /// Gets the pooled object. /// </summary> /// <typeparam name="TKey">The type of the t key.</typeparam> /// <typeparam name="TValue">The type of the t value.</typeparam> /// <param name="pool">The pool.</param> /// <returns>PooledObject<Dictionary<TKey, TValue>>.</returns> public static PooledObject <Dictionary <TKey, TValue> > GetPooledObject <TKey, TValue>(this ObjectPool <Dictionary <TKey, TValue> > pool) { return(PooledObject <Dictionary <TKey, TValue> > .Create(pool)); }
/// <summary> /// Gets the pooled object. /// </summary> /// <typeparam name="TItem">The type of the t item.</typeparam> /// <param name="pool">The pool.</param> /// <returns>PooledObject<List<TItem>>.</returns> public static PooledObject <List <TItem> > GetPooledObject <TItem>(this ObjectPool <List <TItem> > pool) { return(PooledObject <List <TItem> > .Create(pool)); }
/// <summary> /// Gets the pooled object. /// </summary> /// <param name="pool">The pool.</param> /// <returns>PooledObject<StringBuilder>.</returns> public static PooledObject <StringBuilder> GetPooledObject(this ObjectPool <StringBuilder> pool) { return(PooledObject <StringBuilder> .Create(pool)); }