[NUI] use proper constructor of ArgumentNullException (#1708)
authorYeongJong Lee <cleanlyj@naver.com>
Mon, 22 Jun 2020 04:58:48 +0000 (13:58 +0900)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2020 04:58:48 +0000 (13:58 +0900)
use `ArgumentNullException(string paramName, string message);`
instead of `ArgumentNullException(string paramName);`.
`ArgumentNullException(string message);` doesn't exist.

Also, fixes CA2208

src/Tizen.NUI.Components/Controls/DropDown.cs

index 6439225..399e15a 100755 (executable)
@@ -849,11 +849,7 @@ namespace Tizen.NUI.Components
             [EditorBrowsable(EditorBrowsableState.Never)]
             public ViewHolder(View itemView)
             {
-                if (itemView == null)
-                {
-                    throw new ArgumentNullException("itemView may not be null");
-                }
-                this.ItemView = itemView;
+                ItemView = itemView ?? throw new ArgumentNullException(nameof(itemView), "itemView may not be null");
             }
 
             /// <summary>