示例#1
0
        //----------------------------------------------------------------------------------------------------
        public static T GetNewGenericArray <T>(T tmpNullObj)
        {
            T rtn = tmpNullObj;

            HtmlContext.eval("rtn = new Array();");
            return(rtn);
        }
示例#2
0
        //----------------------------------------------------------------------------------------------------
        public static int Len(object arrayObj)
        {
            int len = 0;

            try
            {
                HtmlContext.eval("len = arrayObj.length;");
            }
            catch { }
            return(len);
        }