diff options
author | Bruno da Silva Belo <bruno.belo@expertisesolutions.com.br> | 2019-12-17 11:00:09 -0300 |
---|---|---|
committer | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-12-17 11:26:57 -0300 |
commit | b6521cc279cda9a9a1591a30c4f63220e196b3af (patch) | |
tree | 4ca24ea6192e20def707809cc0cea291754d3415 | |
parent | c40e948270e84e0e8e1818736c1e77a103695d51 (diff) | |
download | efl-b6521cc279cda9a9a1591a30c4f63220e196b3af.tar.gz |
csharp: Suppressing non-events Raise methods.
Summary: ref T8390
Reviewers: lauromoura, felipealmeida, YOhoho, jptiz
Reviewed By: jptiz
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8390
Differential Revision: https://phab.enlightenment.org/D10717
-rw-r--r-- | src/bindings/mono/eina_mono/eina_error.cs | 5 | ||||
-rw-r--r-- | src/bindings/mono/eldbus_mono/eldbus_common.cs | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/bindings/mono/eina_mono/eina_error.cs b/src/bindings/mono/eina_mono/eina_error.cs index 44528cc691..1300e796ab 100644 --- a/src/bindings/mono/eina_mono/eina_error.cs +++ b/src/bindings/mono/eina_mono/eina_error.cs @@ -17,6 +17,7 @@ using System; using System.Runtime.InteropServices; +using System.Diagnostics.CodeAnalysis; namespace Eina { @@ -153,6 +154,8 @@ public struct Error : IComparable<Error>, IEquatable<Error> /// back to the native code. For example, in an event handler. /// <para>Since EFL 1.23.</para> /// </summary> + [SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate", + Justification = "It's not an event.")] public static void RaiseIfUnhandledException() { Error e = Get(); @@ -167,6 +170,8 @@ public struct Error : IComparable<Error>, IEquatable<Error> /// Raises an exception. /// <para>Since EFL 1.23.</para> /// </summary> + [SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate", + Justification = "It's not an event.")] public static void Raise(Error e) { if (e != 0) diff --git a/src/bindings/mono/eldbus_mono/eldbus_common.cs b/src/bindings/mono/eldbus_mono/eldbus_common.cs index 9d6a408c47..2606fe92c8 100644 --- a/src/bindings/mono/eldbus_mono/eldbus_common.cs +++ b/src/bindings/mono/eldbus_mono/eldbus_common.cs @@ -87,7 +87,7 @@ public struct ObjectPath : IEquatable<ObjectPath> /// </summary> /// <param name="path">The ObjectPath to be converted.</param> public static string ToString(ObjectPath path) => path.value; - + /// <summary> /// Gets a hash for <see cref="ObjectPath" />. /// <para>Since EFL 1.24.</para> @@ -1551,6 +1551,8 @@ public static class Common /// Register the NullError. /// <para>Since EFL 1.23.</para> /// </summary> + [SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate", + Justification = "It's not an event.")] public static void RaiseNullHandle() { if (NullHandleError == 0) |