Exemplo n.º 1
0
 public static PooledObject <List <TItem> > GetPooledObject <TItem>(this ObjectPool <List <TItem> > pool)
 => PooledObject <List <TItem> > .Create(pool);
Exemplo n.º 2
0
 public static PooledObject <StringBuilder> GetPooledObject(this ObjectPool <StringBuilder> pool)
 => PooledObject <StringBuilder> .Create(pool);
Exemplo n.º 3
0
 public static PooledObject <Dictionary <TKey, TValue> > GetPooledObject <TKey, TValue>(this ObjectPool <Dictionary <TKey, TValue> > pool)
     where TKey : notnull
 => PooledObject <Dictionary <TKey, TValue> > .Create(pool);
Exemplo n.º 4
0
 public static PooledObject <List <TItem> > GetPooledObject <TItem>(this ObjectPool <List <TItem> > pool)
 {
     return(PooledObject <List <TItem> > .Create(pool));
 }
Exemplo n.º 5
0
 public static PooledObject <Dictionary <TKey, TValue> > GetPooledObject <TKey, TValue>(this ObjectPool <Dictionary <TKey, TValue> > pool)
 {
     return(PooledObject <Dictionary <TKey, TValue> > .Create(pool));
 }
Exemplo n.º 6
0
 public static PooledObject <StringBuilder> GetPooledObject(this ObjectPool <StringBuilder> pool)
 {
     return(PooledObject <StringBuilder> .Create(pool));
 }
Exemplo n.º 7
0
 public static PooledObject <Stopwatch> GetPooledObject(this ObjectPool <Stopwatch> pool)
 {
     return(PooledObject <Stopwatch> .Create(pool));
 }
Exemplo n.º 8
0
 public static PooledObject <Stopwatch> GetPooledObject(this ObjectPool <Stopwatch> pool)
 => PooledObject <Stopwatch> .Create(pool);