[nem-en] [Patch] Fix codedom when using partial class and multiple source file

Michal Moskal michal.moskal at gmail.com
Fri Jan 20 19:04:00 CET 2006


On 1/20/06, Kanru Chen <ckanru at gmail.com> wrote:
> I found that the example of ASP.NET at the bottom of
> http://nemerle.org/ASP.NET did not run with current mono/xsp2. When
> using 2.0 profile, mono will automatically generate partial class for
> aspx page but old code-generator did not handle this. The second
> problem is that old code-compiler did not handle addition options from
> CompilerParameters.CompilerOptions. This cause compiler can't find
> separate source file. The following patch should fix this problem.

Thanks a lot, applied!

> And the example should modify to:
>
> using System;
> using System.Web.UI;
> using System.Web.UI.WebControls;
>
> public partial class Test : Page
> {
>     protected Page_Load(_ : object, _ : EventArgs) : void
>     {
>       Message.Text = $"You last accessed this page at: $(DateTime.Now)";
>     }
>     protected EnterBtn_Click(_ : object, _ : EventArgs) : void
>     {
>       Message.Text = $"Hi $(Name.Text), welcome to ASP.NET!";
>     }
> }

I guess the two protected fields should stay where they were?

--
   Michal Moskal,
   http://nemerle.org/~malekith/



More information about the devel-en mailing list