}
/// <summary>
+ /// Destroy the GeocoordinatesList object.
+ /// </summary>
+ ~GeocoordinatesList()
+ {
+ Dispose(false);
+ }
+
+ /// <summary>
/// The iterator for coordinates in this list.
/// </summary>
internal IEnumerable<Geocoordinates> Coordinates
{
if (!_disposedValue)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}