{
throw new ObjectDisposedException(nameof(MetadataEditor));
}
+
return _handle;
}
}
{
return GetParam(MetadataEditorAttr.Artist);
}
+
set
{
SetParam(MetadataEditorAttr.Artist, value);
{
return GetParam(MetadataEditorAttr.Title);
}
+
set
{
SetParam(MetadataEditorAttr.Title, value);
{
return GetParam(MetadataEditorAttr.Album);
}
+
set
{
SetParam(MetadataEditorAttr.Album, value);
{
return GetParam(MetadataEditorAttr.Genre);
}
+
set
{
SetParam(MetadataEditorAttr.Genre, value);
{
return GetParam(MetadataEditorAttr.Author);
}
+
set
{
SetParam(MetadataEditorAttr.Author, value);
{
return GetParam(MetadataEditorAttr.Copyright);
}
+
set
{
SetParam(MetadataEditorAttr.Copyright, value);
{
return GetParam(MetadataEditorAttr.Date);
}
+
set
{
SetParam(MetadataEditorAttr.Date, value);
{
return GetParam(MetadataEditorAttr.Description);
}
+
set
{
SetParam(MetadataEditorAttr.Description, value);
{
return GetParam(MetadataEditorAttr.Comment);
}
+
set
{
SetParam(MetadataEditorAttr.Comment, value);
{
return GetParam(MetadataEditorAttr.TrackNumber);
}
+
set
{
SetParam(MetadataEditorAttr.TrackNumber, value);
{
return GetParam(MetadataEditorAttr.Conductor);
}
+
set
{
SetParam(MetadataEditorAttr.Conductor, value);
{
return GetParam(MetadataEditorAttr.UnsyncLyrics);
}
+
set
{
SetParam(MetadataEditorAttr.UnsyncLyrics, value);
{
// To be used if there are any other disposable objects
}
+
if (_handle != IntPtr.Zero)
{
Interop.MetadataEditor.Destroy(_handle);
_handle = IntPtr.Zero;
}
+
_disposed = true;
}
}