Nullable Types In VB 2005
Will Nullable Types be also available in VB 2005? I hope so, as Nullable Types is the only language feature that I find compelling enough to make me want to switch.
Nullable types will be available for all languages, as it is implemented within the .NET Framework. However, VB will not have the same support as C#.
For example:
Dim nullable As Nullable(Of Integer) If (Not nullable.HasValue) Then |
This can be done in C#, like so:
int? nullable = 10; if (nullable == null) |
No the differences don't go beyond syntax. You have the same support in VB, you just have fully write out the name of the Nullable type.