[NUI] Fix build warning CA1724 (#2394)
authorbshsqa <32317749+bshsqa@users.noreply.github.com>
Tue, 15 Dec 2020 01:44:12 +0000 (10:44 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 15 Dec 2020 06:33:59 +0000 (15:33 +0900)
- https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1724
 - This warning requires to discuss to fix the name of the Class.

Signed-off-by: seungho <sbsh.baek@samsung.com>
src/Tizen.NUI/src/public/Accessibility/Accessibility.cs
src/Tizen.NUI/src/public/Xaml/ViewExtensions.cs
src/Tizen.NUI/src/public/XamlBinding/Binding.cs

index 9bf85c0..4164a79 100755 (executable)
@@ -19,6 +19,7 @@ using global::System;
 using System.ComponentModel;
 using System.Runtime.InteropServices;
 using Tizen.NUI.BaseComponents;
+using System.Diagnostics.CodeAnalysis;
 #if (NUI_DEBUG_ON)
 using tlog = Tizen.Log;
 #endif
@@ -29,6 +30,7 @@ namespace Tizen.NUI.Accessibility
     /// Accessibility provides Dali-ATSPI interface which has funtionality of Screen-Reader and general accessibility
     /// </summary>
     // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
+    [SuppressMessage("Microsoft.Design", "CA1724: Type names should not match namespaces")]
     [EditorBrowsable(EditorBrowsableState.Never)]
     public class Accessibility : IDisposable
     {
index 65eca2e..61cab94 100755 (executable)
@@ -29,12 +29,14 @@ using System;
 using System.Reflection;
 using System.ComponentModel;
 using Tizen.NUI.Binding;
+using System.Diagnostics.CodeAnalysis;
 
 namespace Tizen.NUI.Xaml
 {
     /// <summary>
     /// Extension class for View defining Tizen.NUI.Xaml.Extensions.LoadFromXaml{TView} method.
     /// </summary>
+    [SuppressMessage("Microsoft.Design", "CA1724: Type names should not match namespaces")]
     [EditorBrowsable(EditorBrowsableState.Never)]
     public static class Extensions
     {
index 925b317..40bdd80 100755 (executable)
@@ -7,10 +7,12 @@ using System.Linq.Expressions;
 using System.Reflection;
 using System.Text;
 using Tizen.NUI.Binding.Internals;
+using System.Diagnostics.CodeAnalysis;
 
 namespace Tizen.NUI.Binding
 {
     /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+    [SuppressMessage("Microsoft.Design", "CA1724: Type names should not match namespaces")]
     [EditorBrowsable(EditorBrowsableState.Never)]
     public sealed class Binding : BindingBase
     {