Click or drag to resize

PoolTInstance Class

Keeps track of a pool of instances.
Inheritance Hierarchy
SystemObject
  SampSharp.GameMode.ToolsDisposable
    SampSharp.GameMode.PoolsPoolTInstance
      SampSharp.GameMode.DisplayMenu

Namespace:  SampSharp.GameMode.Pools
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public abstract class Pool<TInstance> : Disposable
where TInstance : Pool<TInstance>

Type Parameters

TInstance
Base type of instances to keep track of.

The PoolTInstance type exposes the following members.

Constructors
  NameDescription
Protected methodPoolTInstance
Initializes a new instance of the PoolTInstance class.
Top
Properties
Methods
  NameDescription
Protected methodAssertNotDisposed
Checks whether this instance has been disposed. If it has, it throws an exception.
(Inherited from Disposable.)
Public methodStatic memberContains
Gets whether the given instance is present in the pool.
Public methodDispose
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.)
Protected methodDispose(Boolean)
Removes this instance from the pool.
(Overrides DisposableDispose(Boolean).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the Disposable class.
(Inherited from Disposable.)
Public methodStatic memberGetAllT2
Gets a ReadOnlyCollectionT containing all instances of the given type within this PoolTInstance.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventDisposed
Occurs when this isntance has been disposed.
(Inherited from Disposable.)
Top
Fields
  NameDescription
Protected fieldStatic memberInstances
The instances alive in this pool.
Protected fieldStatic memberLock
A Locker for tread-saving this pool.
Top
See Also