Click or drag to resize

RefCountedDisposable Class

A utility base class that implements a referenced counted disposable object. This object can be retained by calls to Retain and must be Disposed an equal number of times, plus once more to balance the creation. Each call to dispose will decrement the reference count and the final call will perform the disposal
Inheritance Hierarchy
SystemObject
  Couchbase.Lite.UtilRefCountedDisposable

Namespace:  Couchbase.Lite.Util
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0469
Syntax
C#
public abstract class RefCountedDisposable : IDisposable

The RefCountedDisposable type exposes the following members.

Constructors
  NameDescription
Protected methodRefCountedDisposable
Constructor
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Performs the actual disposale
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Destructor
(Overrides ObjectFinalize.)
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 methodRetain
Adds one to the reference count of the object, meaning that another call to Dispose is needed to actually dispose of this object
Public methodRetainT
Retains the object and returns it as a downcasted object
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodRecursiveEqual
Tests for equality between two untyped objects, and if they are collections recursively checks for equality on each entry.
(Defined by Extensions.)
Top
See Also