[nem-en] [Patch] Fix codedom when using partial class and
multiple source file
Kanru Chen
ckanru at gmail.com
Fri Jan 20 19:30:51 CET 2006
2006/1/21, Michal Moskal <michal.moskal at gmail.com>:
> On 1/20/06, Kanru Chen <ckanru at gmail.com> wrote:
> > 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?
>
No, since ASP.NET 2.0 automatically generate these protected fields in
separate sourcefile we need not declare it twice. Actually if they
stay there will make compilation error.
--
~ Kanru Chen <koster at debian.org.tw>
'v' http://stu.csie.ncnu.edu.tw/~kanru.96/
// \\ GnuPG-Key ID: 365CC7A2
/( )\ Fingerprint: 3278 DFB4 BB28 6E8C 9E1F 1ECB B1B7 5B5F 365C C7A2
^`~'^
More information about the devel-en
mailing list