From b90c50ad170a437ced84743b66de1f139dc715b8 Mon Sep 17 00:00:00 2001 From: Bruno da Silva Belo Date: Wed, 18 Dec 2019 20:42:08 +0000 Subject: [PATCH] c#: Fixing ca2208 for Eina.List. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some ca's warning reactivated. ref T8428 Reviewed-by: João Paulo Taylor Ienczak Zanette Differential Revision: https://phab.enlightenment.org/D10911 --- src/bindings/mono/eina_mono/eina_list.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings/mono/eina_mono/eina_list.cs b/src/bindings/mono/eina_mono/eina_list.cs index 60b33e5df0..cdd49c7245 100644 --- a/src/bindings/mono/eina_mono/eina_list.cs +++ b/src/bindings/mono/eina_mono/eina_list.cs @@ -188,13 +188,13 @@ public class List : IList, IEnumerable, IDisposable { if (!(0 <= idx && idx < Count)) { - throw new ArgumentOutOfRangeException(); + throw new ArgumentOutOfRangeException(nameof(idx), $"{nameof(idx)} cannot be negative, neither smaller than {nameof(Count)}"); } var ele = f(Handle, (uint)idx); if (ele == IntPtr.Zero) { - throw new ArgumentOutOfRangeException(); + throw new ArgumentOutOfRangeException(nameof(idx), $"There is no position {nameof(idx)}"); } return ele;