eina_array: add paramName argument of ArgumentNullException
authorYeongjong Lee <yj34.lee@samsung.com>
Fri, 25 Oct 2019 22:14:58 +0000 (19:14 -0300)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 11 Nov 2019 02:20:39 +0000 (11:20 +0900)
Summary:
ArgumentNullException constructor included `message` is
`public ArgumentNullException (string paramName, string message);`

Fix CA2208
ref T8428

Test Plan:
meson setup -Dbindings=mono,cxx -Dmono-beta=true
ninja test

Reviewers: lauromoura, felipealmeida, brunobelo

Reviewed By: lauromoura

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8428

Differential Revision: https://phab.enlightenment.org/D10464

src/bindings/mono/eina_mono/eina_array.cs

index 47d6962..7ebb7ed 100644 (file)
@@ -149,7 +149,7 @@ public class Array<T> : IEnumerable<T>, IDisposable
     {
         if (handle == IntPtr.Zero)
         {
-            throw new ArgumentNullException("Handle can't be null");
+            throw new ArgumentNullException("handle", "Handle can't be null");
         }
 
         Handle = handle;
@@ -168,7 +168,7 @@ public class Array<T> : IEnumerable<T>, IDisposable
     {
         if (handle == IntPtr.Zero)
         {
-            throw new ArgumentNullException("Handle can't be null");
+            throw new ArgumentNullException("handle", "Handle can't be null");
         }
 
         Handle = handle;