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, IEquatable /// back to the native code. For example, in an event handler. /// Since EFL 1.23. /// + [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, IEquatable /// Raises an exception. /// Since EFL 1.23. /// + [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 /// /// The ObjectPath to be converted. public static string ToString(ObjectPath path) => path.value; - + /// /// Gets a hash for . /// Since EFL 1.24. @@ -1551,6 +1551,8 @@ public static class Common /// Register the NullError. /// Since EFL 1.23. /// + [SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate", + Justification = "It's not an event.")] public static void RaiseNullHandle() { if (NullHandleError == 0)