PoolTInstance Class |
Namespace: SampSharp.GameMode.Pools
public abstract class Pool<TInstance> : Disposable where TInstance : Pool<TInstance>
The PoolTInstance type exposes the following members.
Name | Description | |
---|---|---|
![]() | PoolTInstance |
Initializes a new instance of the PoolTInstance class.
|
Name | Description | |
---|---|---|
![]() ![]() | All |
Gets a IEnumerableT containing all instances of type.
|
![]() | IsDisposed |
Gets whether this resource has been disposed.
(Inherited from Disposable.) |
Name | Description | |
---|---|---|
![]() | AssertNotDisposed |
Checks whether this instance has been disposed. If it has, it throws an exception.
(Inherited from Disposable.) |
![]() ![]() | Contains |
Gets whether the given instance is present in the pool.
|
![]() | Dispose |
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.) |
![]() | Dispose(Boolean) |
Removes this instance from the pool.
(Overrides DisposableDispose(Boolean).) |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize |
Finalizes an instance of the Disposable class.
(Inherited from Disposable.) |
![]() ![]() | GetAllT2 |
Gets a ReadOnlyCollectionT containing all instances of the given type within this
PoolTInstance.
|
![]() | GetHashCode | Serves as the default hash function. (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.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | Disposed |
Occurs when this isntance has been disposed.
(Inherited from Disposable.) |
Name | Description | |
---|---|---|
![]() ![]() | Instances |
The instances alive in this pool.
|
![]() ![]() | Lock |
A Locker for tread-saving this pool.
|