[NUI] Fix build warning[CA1064]
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / NativeImageSource.cs
index 04b5e7d..a68e0bb 100755 (executable)
@@ -41,17 +41,17 @@ namespace Tizen.NUI
 
 
         /// <summary>
-        /// Get URL from native image source.
+        /// Get URI from native image source.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public Uri Url
+        public Uri Uri
         {
             get
             {
-                string url = "";
-                url = Interop.NativeImageSource.GenerateUrl(this.swigCPtr.Handle);
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return new Uri(url);
+                string uri = "";
+                uri = Interop.NativeImageSource.GenerateUrl(this.swigCPtr.Handle);
+                if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
+                return new Uri(uri);
             }
         }