From 4b6740b258ba265e21a5e1b82fa6b787dd35e426 Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Fri, 17 Jan 2020 10:18:13 +0100 Subject: [PATCH] Adapt Eina.Array example to latest syntax --- reference/csharp/eina/src/eina_array.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/csharp/eina/src/eina_array.cs b/reference/csharp/eina/src/eina_array.cs index 3864bded..c1089c5f 100644 --- a/reference/csharp/eina/src/eina_array.cs +++ b/reference/csharp/eina/src/eina_array.cs @@ -43,7 +43,7 @@ public class Example : Efl.Csharp.Application var array = CreateArray(); // Show the contents of our array - Console.WriteLine("Array count: {0}", array.Count()); + Console.WriteLine("Array count: {0}", array.Count); Console.WriteLine("Array contents:"); foreach(string name in array) { @@ -60,7 +60,7 @@ public class Example : Efl.Csharp.Application // array.RemoveAll(ItemRemoveCb); // TODO: FIXME // Print the new contents of our array - Console.WriteLine("New array count: {0}", array.Length); + Console.WriteLine("New array count: {0}", array.Count); Console.WriteLine("New array contents:"); foreach(string name in array) Console.WriteLine(" {0}", name);