felipealmeida pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=b90c50ad170a437ced84743b66de1f139dc715b8
commit b90c50ad170a437ced84743b66de1f139dc715b8 Author: Bruno da Silva Belo <[email protected]> Date: Wed Dec 18 20:42:08 2019 +0000 c#: Fixing ca2208 for Eina.List. Some ca's warning reactivated. ref T8428 Reviewed-by: João Paulo Taylor Ienczak Zanette <[email protected]> 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<T> : IList<T>, IEnumerable<T>, 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; --
