*** empty log message ***
[m17n/m17n-lib-cs.git] / symbol.cs
diff --git a/symbol.cs b/symbol.cs
new file mode 100644 (file)
index 0000000..b92921f
--- /dev/null
+++ b/symbol.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using M17N.Core;
+
+public class Test
+{
+  public static void Main()
+  {
+    MSymbol sym1 = new MSymbol ("symbol");
+    MSymbol sym2 = new MSymbol ("symbol");
+    MSymbol sym3 = new MSymbol ("another sym:bol");
+
+    Console.WriteLine ("sym1 = {0}", sym1);
+    Console.WriteLine ("sym2 = {0}", sym2);
+    Console.WriteLine ("sym3 = {0}", sym3);
+    Console.WriteLine ("sym1 {0} sym2", sym1 == sym2 ? "==" : "!=");
+    Console.WriteLine ("sym1 {0} sym3", sym1 == sym3 ? "==" : "!=");
+
+    sym1.Put (sym2, "prop1");
+    sym1.Put (sym3, "prop2");
+    Console.WriteLine (sym1.Get (sym2) + "," + sym1.Get (sym3));
+    Console.WriteLine (sym2.Get (sym2) + "," + sym2.Get (sym3));
+    Console.WriteLine (sym3.Get (sym2));
+  }
+}