[Mono-list] ASP.NET precompilation
Chris Aitken
chris at ion-dreams.com
Fri Jul 29 04:29:48 EDT 2005
> On Thu, 2005-07-28 at 09:41 +0100, Chris Aitken wrote:
> > I imported an ASP.NET 1.1 web form into VWDE, and it would
> not build.
> > I hadn't included 'partial' in the class definition. I
> understand the
> > partial allows one to spread a class definition over a number of
> > source files - but my class was in a single source file! Obviously
> > partial is now in the C# 3rd edition, but is it necessary
> to declare a
> > class as partial when it exists in a single file - or is
> this an MS beta issue?
>
> Nope. It will build another source with the design-time set
> things besides your source. And will compile both. Previously
> inheritance was used now both sources are partial definitions
> of the same class.
>
> > One thing I did like was the new class derivation model.
> The aspx page
> > can define controls (labels, button etc), without the need
> to declare
> > the protected members within the source file.
>
> That's why the second "partial" source exists...
Cunning....I hadn't thought of the aspx page as the second part of the
'partial'.
Thanks
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Mono-list
mailing list