handle = nativeHandle;
}
+ /// <summary>
+ /// Destroy the Area object.
+ /// </summary>
+ ~Area()
+ {
+ Dispose(false);
+ }
+
#region IDisposable Support
private bool _disposedValue = false;
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
handle = nativeHandle;
}
+ /// <summary>
+ /// Destroy the Geocoordinates object.
+ /// </summary>
+ ~Geocoordinates()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Gets the latitude coordinates.
/// </summary>
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
}
}
+ /// <summary>
+ /// Destroy the GeocoordinatesList object.
+ /// </summary>
+ ~GeocoordinatesList()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// The iterator for coordinates in this list.
/// </summary>
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
Preferences = new SearchPreference();
}
+ /// <summary>
+ /// Destroy the MapService object.
+ /// </summary>
+ ~MapService()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Gets the list of available map service providers.
/// </summary>
{
if (disposing)
{
- _filter.Dispose();
- _searchPreference.Dispose();
+ _filter?.Dispose();
+ _searchPreference?.Dispose();
}
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
_type = type;
}
+ /// <summary>
+ /// Destroy the MapServiceRequest object.
+ /// </summary>
+ ~MapServiceRequest()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Sends a request to the map service provider.
/// </summary>
if (disposing)
{
Cancel();
- _service.Dispose();
}
_disposedValue = true;
}
SetObjectEventCallback();
}
+ /// <summary>
+ /// Destroy the MapView object.
+ /// </summary>
+ ~MapView()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Adds or removes event handlers to deliver a scrolled gesture event.
/// </summary>
{
if (disposing)
{
- _service.Dispose();
+ _handleToObjectTable?.Clear();
}
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
handle = new Interop.MarkerHandle(coordinates.handle, imagePath, type);
}
+ /// <summary>
+ /// Destroy the Marker object.
+ /// </summary>
+ ~Marker()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Gets or sets the clicked event handlers.
/// </summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>
/// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
- /// <since_tizen> 3 </since_tizen>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
handle = new Interop.OverlayHandle(coordinates.handle, objectToContain, type);
}
+ /// <summary>
+ /// Destroy the Overlay object.
+ /// </summary>
+ ~Overlay()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Gets or sets the visibility of an overlay map object.
/// </summary>
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
handle = nativeHandle;
}
+ /// <summary>
+ /// Destroy the Place object.
+ /// </summary>
+ ~Place()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Gets an ID string for the place.
/// </summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>
/// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
- /// <since_tizen> 3 </since_tizen>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
handle = nativeHandle;
}
+ /// <summary>
+ /// Destroy the PlaceAddress object.
+ /// </summary>
+ ~PlaceAddress()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Gets a building number for this address.
/// </summary>
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
handle = nativeHandle;
}
+ /// <summary>
+ /// Destroy the PlaceAddressList object.
+ /// </summary>
+ ~PlaceAddressList()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Gets an iterator for addresses in this list.
/// </summary>
{
if (!_disposedValue)
{
- handle.Dispose();
+ if (disposing)
+ {
+ _list?.Clear();
+ }
+ handle?.Dispose();
_disposedValue = true;
}
}
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;
}
}
handle = new Interop.PlaceFilterHandle();
}
+ /// <summary>
+ /// Destroy the PlaceFilter object.
+ /// </summary>
+ ~PlaceFilter()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Gets or sets a free-formed address string for this place filter.
/// </summary>
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
handle = nativeHandle;
}
+ /// <summary>
+ /// Destroy the PlaceList object.
+ /// </summary>
+ ~PlaceList()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Gets an iterator for the addresses in this list.
/// </summary>
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
handle = new Interop.PolygonHandle(geocoordinateList.handle, color);
}
+ /// <summary>
+ /// Destroy the Polygon object.
+ /// </summary>
+ ~Polygon()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Adds or removes the clicked event handlers.
/// </summary>
{
if (disposing)
{
- _coordinateList.Clear();
+ _coordinateList?.Clear();
}
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
handle = new Interop.PolylineHandle(geocoordinateList.handle, color, width);
}
+ /// <summary>
+ /// Destroy the Polyline object.
+ /// </summary>
+ ~Polyline()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Adds or removes the clicked event handlers.
/// </summary>
{
if (disposing)
{
- _coordinateList.Clear();
+ _coordinateList?.Clear();
}
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
handle = nativeHandle;
}
+ /// <summary>
+ /// Destroy the Route object.
+ /// </summary>
+ ~Route()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Gets an instance of <see cref="Geocoordinates"/> object representing destination coordinates for this route.
/// </summary>
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
handle = nativeHandle;
}
+ /// <summary>
+ /// Destroy the SearchPreference object.
+ /// </summary>
+ ~SearchPreference()
+ {
+ Dispose(false);
+ }
+
/// <summary>
/// Gets or sets a preferred language.
/// </summary>
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}