handle = nativeHandle;
}
+ /// <summary>
+ /// Destroy the PlaceCategory object.
+ /// </summary>
+ ~PlaceCategory()
+ {
+ Dispose(false);
+ }
/// <summary>
/// Gets or sets an ID for this category.
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}