*** empty log message ***
[m17n/m17n-lib-cs.git] / plist.cs
diff --git a/plist.cs b/plist.cs
new file mode 100644 (file)
index 0000000..e9caa80
--- /dev/null
+++ b/plist.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using M17N.Core;
+
+public class Test
+{
+  public static void Main()
+  {
+    MSymbol sym1 = new MSymbol ("sym1");
+    MSymbol sym2 = new MSymbol ("sym2");
+    MPlist plist = new MPlist ();
+    MText mt1 = new MText ("abc");
+    MText mt2 = new MText ("ABC");
+
+    plist.Put (sym1, mt1);
+    plist.Put (sym2, mt2);
+
+    Console.WriteLine (plist);
+    foreach (MPlist p in plist)
+      Console.WriteLine (p.Key + ":" + p.Val);
+  }
+}