Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Errrhhh ..... CSharp or VB
Message
De
27/09/2011 11:51:22
 
 
À
27/09/2011 11:45:33
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01524423
Message ID:
01524907
Vues:
54
>>>Actually I wouldn't be surprised if the compiler optimised it out to
>>>string s = "TomDickHarry";
>>>but I haven't time to check :-{
>>>OTOH if the values weren't literals I think you'd be right.....
>>
>>
>>I have checked with ild
>>
>>The compiler optimises
>>- class properties, ie string s1 = "A" + "b" + "C";
>>- assignments in methode, ie string xx = "D" + "E" + "F";
>
>Again, I'm pretty sure that at least in one of the previous versions there was an upper limit
>on the number of operands optimizable this way - AFAIR 4. Dunno if that still is the case.
>
>my 0.02€
>
>thomas


tested with 12 - still one string assignment
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform