X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.Maps%2FTizen.Maps%2FPolygon.cs;h=67a606df132c60b8e1f5ab1ce1e4822f1703b5cd;hb=dd26342123b4e3593236272d0f8d010fd7235fa4;hp=1503b63cc35134e46b30f876f03f12c7cd3fe0cb;hpb=9a023d9955188ab46599ffd8d8ea00a374697340;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/Tizen.Maps/Tizen.Maps/Polygon.cs b/src/Tizen.Maps/Tizen.Maps/Polygon.cs
index 1503b63..67a606d 100755
--- a/src/Tizen.Maps/Tizen.Maps/Polygon.cs
+++ b/src/Tizen.Maps/Tizen.Maps/Polygon.cs
@@ -23,9 +23,9 @@ using Color = ElmSharp.Color;
namespace Tizen.Maps
{
///
- /// Polygon map object
+ /// The polygon map object.
///
- /// 3
+ /// 3
public class Polygon : MapObject, IDisposable
{
internal Interop.PolygonHandle handle;
@@ -34,9 +34,9 @@ namespace Tizen.Maps
///
/// Creates a polygon visual object.
///
- /// 3
- /// List of geographical coordinates
- /// Background color
+ /// 3
+ /// List of geographical coordinates.
+ /// Background color.
/// Thrown when input values are invalid.
public Polygon(IEnumerable coordinates, Color color) : base()
{
@@ -51,15 +51,23 @@ namespace Tizen.Maps
}
///
- /// Adds or removes clicked event handlers.
+ /// Destroy the Polygon object.
///
- /// 3
+ ~Polygon()
+ {
+ Dispose(false);
+ }
+
+ ///
+ /// Adds or removes the clicked event handlers.
+ ///
+ /// 3
public event EventHandler Clicked;
///
/// Gets or sets visibility for the polygon.
///
- /// 3
+ /// 3
public override bool IsVisible
{
get { return handle.IsVisible; }
@@ -67,9 +75,9 @@ namespace Tizen.Maps
}
///
- /// Gets or sets a list of geographical coordinates of polygon vertices.
+ /// Gets or sets a list of geographical coordinates for polygon vertices.
///
- /// 3
+ /// 3
public IEnumerable Coordinates
{
get
@@ -94,9 +102,9 @@ namespace Tizen.Maps
}
///
- /// Gets or sets background color to fill the polygon.
+ /// Gets or sets a background color to fill the polygon.
///
- /// 3
+ /// 3
public Color FillColor
{
get
@@ -127,23 +135,28 @@ namespace Tizen.Maps
#region IDisposable Support
private bool _disposedValue = false;
+ ///
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ ///
+ /// If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.
+ /// 3
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
{
if (disposing)
{
- _coordinateList.Clear();
+ _coordinateList?.Clear();
}
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
///
- /// Releases all resources used by this object.
+ /// Releases all the resources used by this object.
///
- /// 3
+ /// 3
public void Dispose()
{
Dispose(true);