Jump to content
Software FX Community

nullable properties?


Recommended Posts

I think I found a bug, below is a test case.

Public Class test

  Private _age As Nullable(Of Integer)

  Private _date As DateTime = Date.Now

  Public Property age() As Nullable(Of Integer)


  age = _age

  End Get

  Set(ByVal Value As Nullable(Of Integer))

  _age = Value

  End Set

  End Property

  Public Property dateNow() As DateTime


  dateNow = _date

  End Get

  Set(ByVal Value As DateTime)

  _date = Value

  End Set

  End Property

End Class


Dim testList As IList(Of test) = New List(Of test)

  Dim test1 As test = New test

  Dim test2 As test = New test

  Dim test3 As test = New test

  test1.age = 14


  test2.age = 15


  test3.age = 34


  Chart1.DataSource = testList



any time I have a property with a type of nullable it just puts in zeros for the values. I saw some other posts were they had similar problems but were not using list objects.

Link to comment
Share on other sites

  • 4 months later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...