コード例 #1
0
    private anon_689d51d359b141258928b1f3b4014cf2 Copy_80bd4526f74c45d6b775bcab35272e7b(DownloadPage o)
    {
        anon_689d51d359b141258928b1f3b4014cf2 t = new anon_689d51d359b141258928b1f3b4014cf2();

        t.DownloadPage = o;
        return(t);
    }
コード例 #2
0
    private CodeTable <anon_689d51d359b141258928b1f3b4014cf2> Where_491d4f3515454428a0319f9ceaae2b0d(CodeTable <anon_689d51d359b141258928b1f3b4014cf2> table)
    {
        Call(16);
        CodeTable <anon_689d51d359b141258928b1f3b4014cf2> newTable = new CodeTable <anon_689d51d359b141258928b1f3b4014cf2>();
        IList <anon_689d51d359b141258928b1f3b4014cf2>     rows     = table.Where(row =>
        {
            return(true);
        }).ToList();

        newTable.SetRows(rows);
        IEnumerator <anon_689d51d359b141258928b1f3b4014cf2> i = newTable.GetEnumerator();

        for (
            ; i.MoveNext();
            )
        {
            anon_689d51d359b141258928b1f3b4014cf2 row = i.Current;
            row.DownloadPage = row.DownloadPage.CssWhere("div.reply");
        }
        return(newTable);
    }
コード例 #3
0
    private Table <ResultRow> Select_eebbeb38988d4f269904a0da0be8c774()
    {
        Call(12);
        RuntimeTable <ResultRow> result = new RuntimeTable <ResultRow>();

        result.AddColumn("p:nth-child(2)");
        result.AddColumn("p.author a");
        CodeTable <anon_689d51d359b141258928b1f3b4014cf2> fromTable = From_f679e9125ac741039b19ae43171f05e5();

        fromTable = Where_491d4f3515454428a0319f9ceaae2b0d(fromTable);
        IEnumerator <anon_689d51d359b141258928b1f3b4014cf2> x = fromTable.GetEnumerator();

        for (
            ; x.MoveNext();
            )
        {
            anon_689d51d359b141258928b1f3b4014cf2 row = x.Current;
            IEnumerator <HtmlNode> y = row.DownloadPage.nodes.GetEnumerator();
            for (
                ; y.MoveNext();
                )
            {
                HtmlNode  node      = y.Current;
                ResultRow resultRow = new ResultRow(2);
                resultRow[0] = node.Pick("p:nth-child(2)").TakeText();
                resultRow[1] = node.Pick("p.author a").TakeText();
                if (((resultRow[0] != null) &&
                     (resultRow[1] != null)))
                {
                    result.Add(resultRow);
                }
            }
            row.DownloadPage.Clear();
        }
        OnSelect(result);
        return(result);
    }