Execute() публичный Метод

public Execute ( string page, TextWriter tw ) : void
page string
tw TextWriter
Результат void
Пример #1
0
    static void Main()
    {
        TinyHost     h = CreateHost();
        StreamWriter w = new StreamWriter("page.aspx");

        w.WriteLine(@"<%@ Page Language=""C#"" %>");
        w.WriteLine(@"<% Console.WriteLine(""Hello""); %>");
        w.Close();
        h.Execute("page.aspx");
    }
Пример #2
0
    static void Main()
    {
        TinyHost h = CreateHost();

        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t****C#: TinyHost h = CreateHost () done ****\n");
        //
        //  Ende Aenderung Test
        //
        StreamWriter w = new StreamWriter("page.aspx");

        w.WriteLine(@"<%@ Page Language=""C#"" %>");
        w.WriteLine(@"<% Console.WriteLine(""Hello""); %>");
        w.Close();
        h.Execute("page.aspx");
    }