};
/**
- * @brief BaseObject: generic wrapper around a safe handle.
+ * @brief BaseObject: generic wrapper around a safe LibVLC handle.
* @ingroup Internals
* This is the baseline for all managed LibVLC objects which wrap
- * an unmanaged LibVLC pointer.
+ * an unmanaged LibVLC pointer, and provides exception handling.
*/
public class BaseObject : IDisposable
{
GC.SuppressFinalize (this);
}
+ /**
+ * Releases unmanaged resources associated with the object.
+ * @param disposing true if the disposing the object explicitly,
+ * false if finalizing the object inside the GC.
+ */
protected virtual void Dispose (bool disposing)
{
if (disposing)
return U8String.FromNative (handle);
}
+ /**
+ * Converts the buffer (as in ToString()) and release it.
+ * @return managed string representation of the buffer
+ */
public string Transform ()
{
string value = ToString ();