Adapt Eina.Array example to latest syntax
This commit is contained in:
parent
870cda6730
commit
4b6740b258
|
@ -43,7 +43,7 @@ public class Example : Efl.Csharp.Application
|
||||||
var array = CreateArray();
|
var array = CreateArray();
|
||||||
|
|
||||||
// Show the contents of our array
|
// Show the contents of our array
|
||||||
Console.WriteLine("Array count: {0}", array.Count());
|
Console.WriteLine("Array count: {0}", array.Count);
|
||||||
Console.WriteLine("Array contents:");
|
Console.WriteLine("Array contents:");
|
||||||
foreach(string name in array)
|
foreach(string name in array)
|
||||||
{
|
{
|
||||||
|
@ -60,7 +60,7 @@ public class Example : Efl.Csharp.Application
|
||||||
// array.RemoveAll(ItemRemoveCb); // TODO: FIXME
|
// array.RemoveAll(ItemRemoveCb); // TODO: FIXME
|
||||||
|
|
||||||
// Print the new contents of our array
|
// 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:");
|
Console.WriteLine("New array contents:");
|
||||||
foreach(string name in array)
|
foreach(string name in array)
|
||||||
Console.WriteLine(" {0}", name);
|
Console.WriteLine(" {0}", name);
|
||||||
|
|
Loading…
Reference in New Issue