The StackPoolExBase2<(Of <(<'T>)>)> type exposes the following members.

Constructors

Methods

  NameDescription
Public methodClear
If objects contain native handles be sure the objects have finalizers to handle that case before this is used. This just clears the entire pool. It does not call dispose or anything else. Clearing will make the objects that are left in the pool, not reachable so they will be garbage collected at a future point. It is possible after this is called that there are items still in use and they will be released back to the pool by the user code when it is done with the object. (So even after clearing you might discover objects back in the pool) This also clears all internal datastructures that were being pooled to store objects in the pool and objects it expects to return to the pool. Also requests to get new objects will allocate them.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodExit
Exit lock - derived classes use for locking
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGet
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodLock
Virtual calls for locking
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRelease
Protected methodReset
Called when there are NO items in the pool
Protected methodSet
Called when there are items in the pool to indicate any threads can continue
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodWait
Called when no items currently in the pool, will wait for items to be returned.

Properties

See Also