Click or drag to resize

SerialisableObjectPoolT Methods

[This is preliminary documentation and is subject to change.]

The SerialisableObjectPoolT generic type exposes the following members.

Methods
  NameDescription
Public methodAcquire
Acquires an object from the pool.
Public methodClear
Clears the pool, emptying it of all pooled objects.
Public methodContains
Determines whether an instance is in the pool.
Public methodEquals (Inherited from Object.)
Public methodFill
Fills the pool, populating it with pooled objects until it reaches the maximum pool size.
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetItems
Protected methodGetObjectFactory
Gets a function used to create new instances of the pooled type. By default, this method uses the public parameterless constructor of type T. This method should be overridden in a subclass if different behaviour is required.
Public methodGetType (Inherited from Object.)
Public methodInitialise
Initialises the pool, populating it with objects and making it ready for use.
Protected methodInitialise(Boolean)
Initialises the pool, making it ready for use, and optionally populating it with objects.
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnAfterDeserialize
Performs actions after the object has been deserialised.
Protected methodOnBeforeSerialize
Performs actions prior to the object being serialised.
Protected methodOnCanAcquireChanged
Raises the CanAcquireChanged event.
Protected methodOnCountChanged
Raises the CountChanged event.
Protected methodOnInitialised
Raises the Initialised event.
Protected methodOnObjectAcquired
Raises the ObjectAcquired event.
Protected methodOnObjectDestroyed
Raises the ObjectDestroyed event.
Protected methodOnObjectInstantiated
Raises the ObjectInstantiated event.
Protected methodOnObjectReleased
Raises the ObjectReleased event.
Public methodRelease
Releases an object back to the pool.
Protected methodReleaseInternal
Releases an object back to the pool.
Public methodRemove
Removes the specified instance from the pool.
Public methodSetSize
Sets the number of objects contained by the pool, either destroying excess pooled objects, or instantiating new ones.
Public methodToString (Inherited from Object.)
Public methodTryAcquire
Acquires an object from the pool.
Top
See Also