Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting null value on Integer
Message
From
24/01/2016 16:34:19
 
 
To
24/01/2016 15:52:35
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01630133
Message ID:
01630166
Views:
43
>number is not an integer; it's a nullable integer because of the ?
> int? value = null;
> Console.WriteLine(value.HasValue);
> value = 1;
> Console.WriteLine(value.HasValue);
> Console.WriteLine(value)
>
>When I run this I get
>false
>true
>1

It appears this syntax is C# only. Could it be?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform