aboutsummaryrefslogtreecommitdiffstats
path: root/reference/csharp/eina/src/eina_list.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/eina/src/eina_list.cs')
-rw-r--r--reference/csharp/eina/src/eina_list.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/reference/csharp/eina/src/eina_list.cs b/reference/csharp/eina/src/eina_list.cs
index ecdf7d31..e04dc205 100644
--- a/reference/csharp/eina/src/eina_list.cs
+++ b/reference/csharp/eina/src/eina_list.cs
@@ -1,8 +1,8 @@
/*
- * Eina List examples.
+ * Eina.List examples.
*
- * These examples demonstrate how to work with Eina_list data and methods.
+ * These examples demonstrate how to work with Eina.List data and methods.
* We create a simple list of names by appending strings to an empty list
* and then run various mutations and print each result.
*/
@@ -29,13 +29,13 @@ public class Example
var list = CreateList();
- // print our list with a simple foreach
+ // Print our list with a simple foreach
Console.WriteLine("List size: {0}", list.Count());
Console.WriteLine("List content:");
foreach(string item in list)
Console.WriteLine(" {0}", item);
- // insert some more elements
+ // Insert some more elements
list.Prepend("Cain");
// list.PrependRelative("Tigh", "Baltar"); // TODO: missing
@@ -43,7 +43,7 @@ public class Example
foreach(string item in list)
Console.WriteLine(" {0}", item);
- // promote an item to the top of the list
+ // Promote an item to the top of the list
// TODO: implement ?
// list.PromoteList(list.NthList(1));
// list.Remove("Cain");
@@ -52,14 +52,14 @@ public class Example
// foreach(string item in list)
// Console.WriteLine(" {0}", item);
- // we can sort the list with any callback
+ // We can sort the list with any callback
// list.Sort((string strA, string strB) => { return strA.Compare(strB); }); // TODO: FIXME custom sort
list.Sort();
Console.WriteLine("List content sorted:");
foreach(string item in list)
Console.WriteLine(" {0}", item);
- // and foreach can be in reverse too
+ // And foreach can be in reverse too
Console.WriteLine("List content reverse sorted:");
foreach(string item in list.Reverse())
Console.WriteLine(" {0}", item);