Click or drag to resize
AB4D logo

SharedDXResourceWrapperT Class

SharedDXResourceWrapper class is a generic wrapper class that can wrap any IDisposable object and adds reference counting to it.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResourceWrapperT

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public class SharedDXResourceWrapper<T> : DXResourceBase, 
	ISharedDXResource, IDisposableDXResource, IDXResource, IDisposable
where T : class, IDisposable

Type Parameters

T

The SharedDXResourceWrapperT type exposes the following members.

Constructors
 NameDescription
Public methodSharedDXResourceWrapperT Creates a shared resource and sets ReferencesCount to 1.
Top
Properties
 NameDescription
Public propertyIsDisposed Gets a Boolean that specifies if this resource has been disposed.
Public propertyReferencesCount Gets an integer that specifies the references count for the Resource.
Public propertyResource Gets the shared resource.
Top
Methods
 NameDescription
Public methodAddRef Increases reference count on this resource.
Public methodDispose Dispose method decreases the reference count of this object. When reference count gets to zero, this object is disposed.
Public methodDisposeAllReferences Disposes this object regardless of the count of references.
Top
See Also