To list all pages with inline CSS or inline scripts along with their line numbers, you can use the HtmlAgilityPack library in C#. The following code snippet demonstrates how to achieve this:

using System;
using HtmlAgilityPack;

class Program
{
    static void Main()
    {
        string[] urls = { "https://example.com/page1", "https://example.com/page2" };

        foreach (string url in urls)
        {
            Console.WriteLine($"Scanning {url}...");
            HtmlWeb web = new HtmlWeb();
            HtmlDocument document = web.Load(url);
            FindInlineStylesAndScripts(document);
        }

        Console.WriteLine("Scanning completed.");
        Console.ReadLine();
    }

    static void FindInlineStylesAndScripts(HtmlDocument document)
    {
        HtmlNodeCollection styleNodes = document.DocumentNode.SelectNodes("//style");
        if (styleNodes != null)
        {
            foreach (HtmlNode styleNode in styleNodes)
            {
                Console.WriteLine($"Inline CSS found at line {styleNode.Line}");
                Console.WriteLine(styleNode.InnerText.Trim());
            }
        }

        HtmlNodeCollection scriptNodes = document.DocumentNode.SelectNodes("//script[@type='text/javascript']");
        if (scriptNodes != null)
        {
            foreach (HtmlNode scriptNode in scriptNodes)
            {
                Console.WriteLine($"Inline script found at line {scriptNode.Line}");
                Console.WriteLine(scriptNode.InnerText.Trim());
            }
        }
    }
}

In this code, we define an array urls that contains the URLs of the pages you want to scan. The HtmlAgilityPack library is used to load and parse the HTML of each page.

The FindInlineStylesAndScripts method takes an HtmlDocument object and searches for <style> and <script> nodes using XPath queries. It then outputs the line number and content of each inline CSS and inline script found.

You can modify the code according to your specific requirements, such as storing the results in a data structure or writing them to a file.