Exemplo n.º 1
0
 public void AddPool <T>(T reference, int initialSize) where T : class, new ()
 {
     PoolCollections <T> .AddPool(reference, initialSize);
 }
Exemplo n.º 2
0
 public void Destroy <T>() where T : class, new ()
 {
     PoolCollections <T> .DestroyPool();
 }
Exemplo n.º 3
0
 public void Destroy <T>(T reference) where T : class, new ()
 {
     PoolCollections <T> .DestroyPool(reference);
 }
Exemplo n.º 4
0
 public void Clear <T>(T reference) where T : class, new ()
 {
     PoolCollections <T> .ClearPool(reference);
 }
Exemplo n.º 5
0
 public void Clear <T>() where T : class, new ()
 {
     PoolCollections <T> .ClearPool();
 }
Exemplo n.º 6
0
 public void Recycle <T>(T reference) where T : class, new ()
 {
     PoolCollections <T> .GetPool(reference).Recycle(reference);
 }
Exemplo n.º 7
0
 public T Get <T>(T reference) where T : class, new ()
 {
     return(PoolCollections <T> .GetPool(reference).Get());
 }
Exemplo n.º 8
0
 public T Get <T>() where T : class, new ()
 {
     return(PoolCollections <T> .GetPool().Get());
 }