title: TeeChart in VB.Net : Subclassing SeriesXYZPoint cannot assign X axis
body: <p>I have a very simple class I'm using to subclass a SeriesXYZPoint in TeeChart vb.net</p>
  
  <pre><code>Imports Steema.TeeChart.Styles
  
  Public Class CustomSeriesXYZPoint
      Inherits SeriesXYZPoint
  
      Public Sub New(X As Double, y As Double, z As Double, color As Color, flagged As Boolean)
          MyBase.New()
          Me.X = X
          Me.Y = y
          Me.Z = z
          Me.Color = color
          Me.flagged = flagged
      End Sub
  
      Public flagged As Boolean
  End Class
  </code></pre>
  
  <p>When I try to assign to the X value at "Me.X = X" I get a nullReferenceException with no InnerException, even though I can see that "Me" is not null in the constructor (as you would hope...)</p>
  
  <p>What I'm doing here should be really simple, and the error message I get is totally opaque. Any help would be awesome.</p>
  
  <p>Edit: I get the same error when I run</p>
  
  <pre><code>    Dim thing As New SeriesXYZPoint
      thing.X = someValue
  </code></pre>