[NUI] Remove StyleCop CA1715 warning messages
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 11 Nov 2020 08:09:26 +0000 (17:09 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Wed, 17 Mar 2021 06:50:14 +0000 (15:50 +0900)
Since T, U, R are commonly used as generic type parameter names and not
to do ACR, StyleCop CA1715 warning messages in DaliEventHandler.cs are
removed.

src/Tizen.NUI/src/internal/Common/DaliEventHandler.cs

index 883a980..e8a976b 100755 (executable)
@@ -16,6 +16,7 @@
  */
 using System;
 using System.ComponentModel;
+using System.Diagnostics.CodeAnalysis;
 using System.Runtime.InteropServices;
 
 namespace Tizen.NUI
@@ -25,6 +26,9 @@ namespace Tizen.NUI
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+    [SuppressMessage("Microsoft.Naming",
+                     "CA1715:IdentifiersShouldHaveCorrectPrefix",
+                     Justification = "T, U, R are commonly used as generic type parameter names.")]
     public delegate R DaliEventHandlerWithReturnType<T, U, R>(T source, U e);
 
     /// <summary>
@@ -43,6 +47,9 @@ namespace Tizen.NUI
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+    [SuppressMessage("Microsoft.Naming",
+                     "CA1715:IdentifiersShouldHaveCorrectPrefix",
+                     Justification = "T, U are commonly used as generic type parameter names.")]
     public delegate void DaliEventHandler<T, U>(T source, U e);
 
     /// <summary>
@@ -50,6 +57,9 @@ namespace Tizen.NUI
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+    [SuppressMessage("Microsoft.Naming",
+                     "CA1715:IdentifiersShouldHaveCorrectPrefix",
+                     Justification = "T, U, R are commonly used as generic type parameter names.")]
     public delegate R EventHandlerWithReturnType<T, U, R>(T source, U e);
 
     /// <summary>