Пример #1
0
    static void Test3()
    {
        Namespace ns = new Namespace("");

        Avm.Object obj = new Avm.Object("a", "1", "b", "2");
        Console.WriteLine(obj.GetProperty(ns, "a"));
        Console.WriteLine(obj.GetProperty(ns, "b"));
    }
Пример #2
0
 static void Test1()
 {
     Avm.Object obj = new Avm.Object("a", "1", "b", "2");
     Console.WriteLine(obj.GetProperty("a"));
     Console.WriteLine(obj.GetProperty("b"));
     obj.SetProperty("a", "10");
     obj.SetProperty("b", "20");
     Console.WriteLine(obj.GetProperty("a"));
     Console.WriteLine(obj.GetProperty("b"));
 }