2 using System.Collections.Generic;
7 public static void Main()
9 MSymbol sym1 = new MSymbol ("symbol");
10 MSymbol sym2 = new MSymbol ("symbol");
11 MSymbol sym3 = new MSymbol ("another sym:bol");
13 Console.WriteLine ("sym1 = {0}", sym1);
14 Console.WriteLine ("sym2 = {0}", sym2);
15 Console.WriteLine ("sym3 = {0}", sym3);
16 Console.WriteLine ("sym1 {0} sym2", sym1 == sym2 ? "==" : "!=");
17 Console.WriteLine ("sym1 {0} sym3", sym1 == sym3 ? "==" : "!=");
19 sym1.Put (sym2, "prop1");
20 sym1.Put (sym3, "prop2");
21 Console.WriteLine (sym1.Get (sym2) + "," + sym1.Get (sym3));
22 Console.WriteLine (sym2.Get (sym2) + "," + sym2.Get (sym3));
23 Console.WriteLine (sym3.Get (sym2));