I have a nullable property, and I want to return a null value. How do I do that in VB.NET ?
Currently I use this solution, but I think there might be a better way.
Public Shared ReadOnly Property rubrique_id() As Nullable(Of Integer) Get If Current.Request.QueryString('rid') <> '' Then Return CInt(Current.Request.QueryString('rid')) Else Return (New Nullable(Of Integer)).Value End If End Get End Property
Are you looking for the keyword ‘Nothing’?