diff options
author | Bruno da Silva Belo <brunodasilvabelo@gmail.com> | 2019-12-18 20:42:08 +0000 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2019-12-23 13:17:04 -0300 |
commit | b90c50ad170a437ced84743b66de1f139dc715b8 (patch) | |
tree | d8751006f0252367d7c9787d750300a4f833aab3 /src | |
parent | 5827fdb3cb1a3a596cf3373f16177a2a55dc4211 (diff) | |
download | efl-b90c50ad170a437ced84743b66de1f139dc715b8.tar.gz |
c#: Fixing ca2208 for Eina.List.
Some ca's warning reactivated.
ref T8428
Reviewed-by: João Paulo Taylor Ienczak Zanette <joao.tiz@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D10911
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/mono/eina_mono/eina_list.cs | 4 |
1 files 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; |