Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One liner for this
Message
De
26/09/2014 08:38:07
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
25/09/2014 16:14:17
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01608225
Message ID:
01608331
Vues:
36
>>>>And (i/=2)++ isn't valid.
>>>>
>>>Yes, I tried it and crashed.
>>>I wonder why MS didn't allow that?
>>
>>Because it doesn't always evaluate to an integer.
>This ran OK, John
>
>
> decimal i = 16.5M;
> i ++ ;
>  
> MessageBox.Show(i.ToString());
>
Wow.. I assumed, incorrectly so, that it has to be an integer prop. Learn something new up here just about everyday. Thanks...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform