X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.Maps%2FTizen.Maps%2FPlaceCategory.cs;h=8c1d2cb377732e26176089e0f5b34d928ef2a385;hb=dd26342123b4e3593236272d0f8d010fd7235fa4;hp=16ce43ce0050d619ea0741a9bf47db5ebef816bd;hpb=ec75666e637b84aededae2ad0f4dcd6b97952452;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 16ce43c..8c1d2cb 100755 --- a/src/Tizen.Maps/Tizen.Maps/PlaceCategory.cs +++ b/src/Tizen.Maps/Tizen.Maps/PlaceCategory.cs @@ -19,17 +19,17 @@ 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 + /// 3 public class PlaceCategory : IDisposable { internal Interop.PlaceCategoryHandle handle; /// - /// Constructs search category object. + /// Constructs a search category object. /// - /// 3 + /// 3 /// Thrown when native operation failed to allocate memory. public PlaceCategory() { @@ -41,11 +41,18 @@ namespace Tizen.Maps handle = nativeHandle; } + /// + /// Destroy the PlaceCategory object. + /// + ~PlaceCategory() + { + Dispose(false); + } /// /// Gets or sets an ID for this category. /// - /// 3 + /// 3 public string Id { get { return handle.Id; } @@ -55,7 +62,7 @@ namespace Tizen.Maps /// /// Gets or sets a name for this category. /// - /// 3 + /// 3 public string Name { get { return handle.Name; } @@ -63,9 +70,9 @@ namespace Tizen.Maps } /// - /// Gets or sets an URL for this category. + /// Gets or sets a URL for this category. /// - /// 3 + /// 3 public string Url { get { return handle.Url; } @@ -75,7 +82,7 @@ namespace Tizen.Maps /// /// Returns a string that represents this object. /// - /// 3 + /// 3 /// Returns a string which presents this object. public override string ToString() { @@ -85,19 +92,24 @@ 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 resources used by this object. + /// Releases all the resources used by this object. /// - /// 3 + /// 3 public void Dispose() { Dispose(true);