summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>2019-12-18 20:42:08 +0000
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-12-23 13:17:04 -0300
commitb90c50ad170a437ced84743b66de1f139dc715b8 (patch)
treed8751006f0252367d7c9787d750300a4f833aab3
parent5827fdb3cb1a3a596cf3373f16177a2a55dc4211 (diff)
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
-rw-r--r--src/bindings/mono/eina_mono/eina_list.cs4
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
188 { 188 {
189 if (!(0 <= idx && idx < Count)) 189 if (!(0 <= idx && idx < Count))
190 { 190 {
191 throw new ArgumentOutOfRangeException(); 191 throw new ArgumentOutOfRangeException(nameof(idx), $"{nameof(idx)} cannot be negative, neither smaller than {nameof(Count)}");
192 } 192 }
193 193
194 var ele = f(Handle, (uint)idx); 194 var ele = f(Handle, (uint)idx);
195 if (ele == IntPtr.Zero) 195 if (ele == IntPtr.Zero)
196 { 196 {
197 throw new ArgumentOutOfRangeException(); 197 throw new ArgumentOutOfRangeException(nameof(idx), $"There is no position {nameof(idx)}");
198 } 198 }
199 199
200 return ele; 200 return ele;