X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.Maps%2FTizen.Maps%2FPlaceCategory.cs;h=8c1d2cb377732e26176089e0f5b34d928ef2a385;hb=dd26342123b4e3593236272d0f8d010fd7235fa4;hp=c55c3f8c73379e8b4d731c945c3fd75544f0d7df;hpb=75b3f987e5619cfcdaebe89e4366f2d79d3c563d;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/Tizen.Maps/Tizen.Maps/PlaceCategory.cs b/src/Tizen.Maps/Tizen.Maps/PlaceCategory.cs
index c55c3f8..8c1d2cb 100755
--- a/src/Tizen.Maps/Tizen.Maps/PlaceCategory.cs
+++ b/src/Tizen.Maps/Tizen.Maps/PlaceCategory.cs
@@ -19,16 +19,18 @@ using System;
namespace Tizen.Maps
{
///
- /// Place Category information, used in Place Discovery and Search requests
+ /// Place category information, used in place discovery and search requests.
///
+ /// 3
public class PlaceCategory : IDisposable
{
internal Interop.PlaceCategoryHandle handle;
///
- /// Constructs search category object
+ /// Constructs a search category object.
///
- /// Throws if native operation failed to allocate memory
+ /// 3
+ /// Thrown when native operation failed to allocate memory.
public PlaceCategory()
{
handle = new Interop.PlaceCategoryHandle();
@@ -39,10 +41,18 @@ namespace Tizen.Maps
handle = nativeHandle;
}
+ ///
+ /// Destroy the PlaceCategory object.
+ ///
+ ~PlaceCategory()
+ {
+ Dispose(false);
+ }
///
- /// ID for this category
+ /// Gets or sets an ID for this category.
///
+ /// 3
public string Id
{
get { return handle.Id; }
@@ -50,8 +60,9 @@ namespace Tizen.Maps
}
///
- /// Name for this category
+ /// Gets or sets a name for this category.
///
+ /// 3
public string Name
{
get { return handle.Name; }
@@ -59,14 +70,20 @@ namespace Tizen.Maps
}
///
- /// URL for this category
+ /// Gets or sets a URL for this category.
///
+ /// 3
public string Url
{
get { return handle.Url; }
set { handle.Url = value; }
}
+ ///
+ /// Returns a string that represents this object.
+ ///
+ /// 3
+ /// Returns a string which presents this object.
public override string ToString()
{
return $"{Name}";
@@ -75,18 +92,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)
{
- handle.Dispose();
+ handle?.Dispose();
_disposedValue = true;
}
}
+ ///
+ /// Releases all the resources used by this object.
+ ///
+ /// 3
public void Dispose()
{
Dispose(true);
+ GC.SuppressFinalize(this);
}
#endregion
}