Shared |
public class SharedDXResourceWrapper<T> : DXResourceBase, ISharedDXResource, IDisposableDXResource, IDXResource, IDisposable where T : class, IDisposable
The SharedDXResourceWrapperT type exposes the following members.
Name | Description | |
---|---|---|
SharedDXResourceWrapperT | Creates a shared resource and sets ReferencesCount to 1. |
Name | Description | |
---|---|---|
IsDisposed | Gets a Boolean that specifies if this resource has been disposed. | |
ReferencesCount | Gets an integer that specifies the references count for the Resource. | |
Resource | Gets the shared resource. |
Name | Description | |
---|---|---|
AddRef | Increases reference count on this resource. | |
Dispose | Dispose method decreases the reference count of this object. When reference count gets to zero, this object is disposed. | |
DisposeAllReferences | Disposes this object regardless of the count of references. |