using System; using M17N.Core; public class Test { public static void Main() { 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 (mt + new MText ("漢字")); mt2 = mt.dup (); mt[1] = 'b'; Console.WriteLine (mt2); int[] ary = {1, 2, 3}; Array.ForEach (ary, delegate (int o) { Console.WriteLine (o); }); } }