*** empty log message ***
[m17n/m17n-lib-cs.git] / temp.cs
diff --git a/temp.cs b/temp.cs
index a5cf1d5..2dc7619 100644 (file)
--- a/temp.cs
+++ b/temp.cs
@@ -1,4 +1,5 @@
 using System;
+using System.Collections.Generic;
 using M17N.Core;
 
 public class Test
@@ -8,18 +9,12 @@ public class Test
     MText mt = new MText ("a𝄀あc");
     MText mt2;
 
-    Console.WriteLine (mt[0]);
-    Console.WriteLine (mt[1]);
-    Console.WriteLine (mt[2]);
-    Console.WriteLine (mt[3]);
+    Console.WriteLine ("Length={0}", mt.Length);
+    foreach (int c in mt)
+      Console.WriteLine ("U+{0:X4}", c);
     Console.WriteLine (mt + new MText ("漢字"));
     mt2 = mt.dup ();
     mt[1] = 'b';
     Console.WriteLine (mt2);
-
-    int[] ary = {1, 2, 3};
-
-    Array.ForEach<int> (ary, delegate (int o) { Console.WriteLine (o); });
-
   }
 }