From: Bowon Ryu Date: Wed, 11 Aug 2021 04:41:00 +0000 (+0900) Subject: [NUI] Fix CA1721 warnings X-Git-Tag: accepted/tizen/unified/20231205.024657~1597 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d20cc1db59b66e8c21fb1bc0fbbab2f60215c17;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix CA1721 warnings CA1721: Property names should not match get methods A warning message occurs as a struct with the same name and Set/Get Methods are added for easy use of PropertyMap. Signed-off-by: Bowon Ryu --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs index 398cf6e..1ff6b6c 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs @@ -203,6 +203,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap FontStyle { get @@ -699,6 +700,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap InputFontStyle { get @@ -812,6 +814,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap Underline { get @@ -890,6 +893,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap Shadow { get @@ -1000,6 +1004,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap Outline { get diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs index e24d9ee..b26fbce 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs @@ -293,6 +293,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap FontStyle { get @@ -971,6 +972,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap InputFontStyle { get @@ -1050,6 +1052,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap Underline { get @@ -1128,6 +1131,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap Shadow { get @@ -1238,6 +1242,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap Outline { get diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs index 4520ce4..9cf5bb7 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs @@ -268,6 +268,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap FontStyle { get @@ -688,6 +689,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap Underline { get @@ -750,6 +752,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap Shadow { get @@ -847,6 +850,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// 3 + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap Outline { get @@ -1085,6 +1089,7 @@ namespace Tizen.NUI.BaseComponents /// /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1721: Property names should not match get methods")] public PropertyMap TextFit { get