From: Yeongjong Lee Date: Thu, 3 Dec 2020 09:48:44 +0000 (+0900) Subject: [NUI] use discard to ignore unused return value X-Git-Tag: accepted/tizen/unified/20210219.040944~192 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b596a7ed0858ad086d75ec725143617239963f0c;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] use discard to ignore unused return value Fixes CA1806 --- diff --git a/src/Tizen.NUI/src/internal/Xaml/TypeConversionExtensions.cs b/src/Tizen.NUI/src/internal/Xaml/TypeConversionExtensions.cs index fc4586a..b010311 100755 --- a/src/Tizen.NUI/src/internal/Xaml/TypeConversionExtensions.cs +++ b/src/Tizen.NUI/src/internal/Xaml/TypeConversionExtensions.cs @@ -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)) diff --git a/src/Tizen.NUI/src/public/Animation.cs b/src/Tizen.NUI/src/public/Animation.cs index fc48425..609d574 100755 --- a/src/Tizen.NUI/src/public/Animation.cs +++ b/src/Tizen.NUI/src/public/Animation.cs @@ -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)) diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs index b1dd3c3..e59b309 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs @@ -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(); } diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs index 8908d7f..d42d27e 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs @@ -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(); }