[NUI] use discard to ignore unused return value
authorYeongjong Lee <cleanlyj@naver.com>
Thu, 3 Dec 2020 09:48:44 +0000 (18:48 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 15 Dec 2020 06:33:59 +0000 (15:33 +0900)
Fixes CA1806

src/Tizen.NUI/src/internal/Xaml/TypeConversionExtensions.cs
src/Tizen.NUI/src/public/Animation.cs
src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs
src/Tizen.NUI/src/public/BaseComponents/TextField.cs

index fc4586a..b010311 100755 (executable)
@@ -199,7 +199,7 @@ namespace Tizen.NUI.Xaml
                 if (toType == typeof(Char))
                 {
                     char c = '\0';
-                    Char.TryParse(str, out c);
+                    _ = Char.TryParse(str, out c);
                     return c;
                 }
                 if (toType == typeof(String) && str.StartsWith("{}", StringComparison.Ordinal))
index fc48425..609d574 100755 (executable)
@@ -1004,7 +1004,7 @@ namespace Tizen.NUI
                 if (toType == typeof(Char))
                 {
                     char c = '\0';
-                    Char.TryParse(str, out c);
+                    _ = Char.TryParse(str, out c);
                     return c;
                 }
                 if (toType == typeof(String) && str.StartsWith("{}", StringComparison.Ordinal))
index b1dd3c3..e59b309 100755 (executable)
@@ -1285,7 +1285,7 @@ namespace Tizen.NUI.BaseComponents
         [EditorBrowsable(EditorBrowsableState.Never)]
         public void SelectNone()
         {
-            Interop.TextEditor.SelectNone(swigCPtr);
+            _ = Interop.TextEditor.SelectNone(swigCPtr);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
index 8908d7f..d42d27e 100755 (executable)
@@ -1347,7 +1347,7 @@ namespace Tizen.NUI.BaseComponents
         [EditorBrowsable(EditorBrowsableState.Never)]
         public void SelectNone()
         {
-            Interop.TextField.SelectNone(swigCPtr);
+            _ = Interop.TextField.SelectNone(swigCPtr);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }