[Mono-list] ASP.NET precompilation

A Rafael D Teixeira rafael.teixeirabr at terra.com.br
Thu Jul 28 18:12:08 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...

> 
> Chris

-- 
Rafael "Monoman" Teixeira 
Mono Hacker since 16 Jul 2001 - http://www.mono-project.com/
Mono Brasil Founding Member - http://monobrasil.softwarelivre.org/
Simios Proud Member - http://www.simios.org/ 
English Blog: http://monoblog.blogspot.com/
Brazilian Portuguese Blog: http://www.simios.org/blog/monoman



More information about the Mono-list mailing list