*** empty log message ***
[m17n/m17n-lib-cs.git] / symbol.cs
1 using System;
2 using System.Collections.Generic;
3 using M17N;
4 using M17N.Core;
5
6 public class Test
7 {
8   public static void Main()
9   {
10     MSymbol sym1 = new MSymbol ("symbol");
11     MSymbol sym2 = new MSymbol ("symbol");
12     MSymbol sym3 = new MSymbol ("another sym:bol");
13
14     Console.WriteLine ("version {0}-{1}-{2}", M17N.M17N.MajorVersion,
15                        M17N.M17N.MinorVersion, M17N.M17N.ReleaseNumber);
16
17     Console.WriteLine ("sym1 = {0}", sym1);
18     Console.WriteLine ("sym2 = {0}", sym2);
19     Console.WriteLine ("sym3 = {0}", sym3);
20     Console.WriteLine ("sym1 {0} sym2", sym1 == sym2 ? "==" : "!=");
21     Console.WriteLine ("sym1 {0} sym3", sym1 == sym3 ? "==" : "!=");
22
23     sym1.Put (sym2, "prop1");
24     sym1.Put (sym3, "prop2");
25     Console.WriteLine (sym1.Get (sym2) + "," + sym1.Get (sym3));
26     Console.WriteLine (sym2.Get (sym2) + "," + sym2.Get (sym3));
27     Console.WriteLine (sym3.Get (sym2));
28   }
29 }