Visual Studio 2008 introduced a way to specify that you want a nullable instance of a structure with the following:
This is valid regardless of whether you are compiling to 2.0, 3.0 or 3.5. My issue is, the project I am working on is made in visual studio 2005. At this time, we are unable to use visual studio 2008 for development; so I would like to know how this is done in 2.0? I assume it's possible considering I can compile to 2.0 in VS2008 using this syntax.VB Code:
Option Strict On Option Explicit On Public Class Form1 Private Enum myEnum Item1 Item2 Item3 End Enum Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim someValue As myEnum? MessageBox.Show(someValue.ToString) End Sub End Class
Thanks.




Reply With Quote