ObjectPool<T> Classe
Definição
Um pool de objetos.A pool of objects.
generic <typename T>
where T : classpublic ref class ObjectPool abstract
public abstract class ObjectPool<T> where T : class
type ObjectPool<'T (requires 'T : null)> = class
Public MustInherit Class ObjectPool(Of T)
Parâmetros de tipo
- T
O tipo de objetos a serem agrupados.The type of objects to pool.
- Herança
-
ObjectPool<T>
- Derivado
Construtores
| ObjectPool<T>() |
Métodos
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| Get() |
Obtém um objeto do pool, se houver um disponível; caso contrário, cria um.Gets an object from the pool if one is available, otherwise creates one. |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| Return(T) |
Retornar um objeto ao pool.Return an object to the pool. |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |