eDriven Framework API
ObjectPool<(Of <(<'T>)>)> Class
Namespaces ► eDriven.Core.Util ► ObjectPool<(Of <(<'T>)>)>
eDriven Framework API
The generic object pool Used for making the objects reusable This is the efficient anti-measure for memory leaks
Declaration Syntax

C# | Visual Basic | Visual C++

    public class ObjectPool<T>
    where T : new()

    Public Class ObjectPool(Of T As New)

    generic<typename T>
    where T : gcnew()
    public ref class ObjectPool

Generic Template Parameters

T

Members

All Members | Constructors | Methods | Properties
Public Protected | Instance Static | Declared Inherited

Icon | Member | Description
--- | --- | ---
| ObjectPool<(Of <(<'T>)>)>()()()() | Constructor for a pool with default size
| ObjectPool<(Of <(<'T>)>)>(Int32) | Constructor
| Count | Returns the current count
| Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
| Get()()()() | Releases an object from the pool
| GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType()()()() | Gets the type of the current instance. (Inherited from Object.)
| MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.)
| PoolSize | The maximum number of objects that this pool can hold
| Put(T) | Adds an object to the pool
| Put(List<(Of <<'(T>)>>)) | Puts a list of objects into the pool
| ToString()()()() | (Overrides Object.ToString()()()().)

Remarks
Coded by Danko Kozar
Inheritance Hierarchy

Object
| ObjectPool<(Of <(<'T>)>)>

Assembly: eDriven.Core (Module: eDriven.Core) Version: 2.0.1.0 (2.0.1.0)