c#: Suppressing warning for CA1724.

Summary: ref T8413

Reviewers: lauromoura, felipealmeida, YOhoho, jptiz

Reviewed By: jptiz

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8413

Differential Revision: https://phab.enlightenment.org/D10811
This commit is contained in:
Bruno da Silva Belo 2019-12-09 08:33:52 -03:00 committed by Lauro Moura
parent 25e2ed3b2f
commit 6d62f66c08
3 changed files with 4 additions and 0 deletions

View File

@ -300,6 +300,7 @@ struct klass
documentation
<< "[" << name_helpers::klass_full_native_inherit_name(cls) << "]\n"
<< "[Efl.Eo.BindingEntity]\n"
<< "[SuppressMessage(\"Microsoft.Naming\", \"CA1724:TypeNamesShouldNotMatchNamespaces\")]\n"
<< "public "
<< (is_partial
? class_type == "class"

View File

@ -415,6 +415,7 @@ struct struct_definition_generator
(
indent << "[StructLayout(LayoutKind.Sequential)]\n"
<< indent << "[Efl.Eo.BindingEntity]\n"
<< "[SuppressMessage(\"Microsoft.Naming\", \"CA1724:TypeNamesShouldNotMatchNamespaces\")]\n"
<< indent << "public struct " << struct_managed_name << " : IEquatable<" << struct_managed_name << ">\n"
<< indent << "{\n"
)

View File

@ -18,6 +18,7 @@
using System;
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using static eldbus.EldbusMessageNativeFunctions;
@ -1543,6 +1544,7 @@ public delegate void MessageDelegate(eldbus.Message msg, eldbus.Pending pending)
/// Commons for eldbus.
/// <para>Since EFL 1.23.</para>
/// </summary>
[SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces")]
public static class Common
{
/// <summary>