Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing Application in a Library
Message
De
28/03/2008 14:19:55
 
 
À
28/03/2008 13:21:03
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01305846
Message ID:
01306580
Vues:
4
>>Apropos of nothing.....
>>I wonder whether, if you insert an intermediate class that does nothing, the compiler will just optimise it out of existence (ala partial methods).
>
>Sometimes the compiler acts in mysterious ways. <g>
>
>I've never actually had to look into what the compiler was optimizing in .NET, I know how to do that in C but I haven't gotten that far in .NET yet.

I thought about it a bit more and decided it wouldn't happen since you'd expect to be able to cast to the 'empty' class even though there would be no point to it. I like the idea behind partial methods though (even if I haven't got round to needing one yet)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform