In order to convert a nullable Integer to a Interger, all that needs to be done is to call the GetValueOrDefault function of the nullable Type.
Dim intNullable As Integer? = Nothing Dim int As Integer = intNullable.GetValueOrDefault() |
In order to convert a nullable Integer to a Interger, all that needs to be done is to call the GetValueOrDefault function of the nullable Type.
Dim intNullable As Integer? = Nothing Dim int As Integer = intNullable.GetValueOrDefault() |
In order to convert a Integer to a nullable interger, all that needs to be done is to call CType
Dim int As Integer = 0 Dim intNullable As Integer? = CType(int, Integer?) |