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-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
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
Determines whether the specified object is equal to the current object.
(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
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(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