Merge "[Usb] Fix crashes while disposing"
[platform/core/csapi/tizenfx.git] / src / Tizen.System.Usb / Usb / UsbDevice.cs
old mode 100755 (executable)
new mode 100644 (file)
index 4116752..faf882a
@@ -186,6 +186,9 @@ namespace Tizen.System.Usb
         #region IDisposable Support
         private bool disposedValue = false;
 
+        /// <summary>
+        /// Releases all resources used by the ConnectionProfile.
+        /// It should be called after finished using of the object.</summary>
         protected virtual void Dispose(bool disposing)
         {
             if (!disposedValue)
@@ -203,11 +206,17 @@ namespace Tizen.System.Usb
             }
         }
 
-         ~UsbDevice()
+        /// <summary>
+        /// Finalizes an instance of the UsbDevice class.
+        /// </summary>
+        ~UsbDevice()
         {
             Dispose(false);
         }
 
+        /// <summary>
+        /// Releases all resources used by the ConnectionProfile.
+        /// It should be called after finished using of the object.</summary>
         public void Dispose()
         {
             Dispose(true);