Ejemplo n.º 1
0
        public static void GetItem1(IMethod method, AbcCode code)
        {
            var p0 = method.Parameters[0].Type;

            if (p0.Is(SystemTypeCode.Int32))
            {
                code.GetNativeArrayItem();
                code.CoerceXML();
            }
            else             //string
            {
                //TODO: It seams that any namespace can not be used with runtime qnames.
                code.PushGlobalPackage();
                code.Swap();
                code.GetRuntimeProperty();
                code.CoerceXMLList();
            }
        }