Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One liner for this
Message
From
26/09/2014 08:38:07
John Baird
Coatesville, Pennsylvania, United States
 
 
To
25/09/2014 16:14:17
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01608225
Message ID:
01608331
Views:
33
>>>>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...
Previous
Reply
Map
View

Click here to load this message in the networking platform