DataPoint.Name Property ignores set name RRS feed

  • Question

  • What's wrong here?  I set the Name property of a DataPoint but it retains the default name "DataPoint".

    using System.Windows.Forms.DataVisualization.Charting;
    DataPoint p = new DataPoint();
    p.Name = "xyz";

    Output results:


    Tuesday, May 17, 2016 5:57 PM


  • Hi

    Yes, I've tested your code, the same as yours. I would suggest you use some decompile tool, for example, reflector and so on.  You can try to decompile DataPoint Name property to see the results. Since I cannot download these tool, if you find something, please post here, good luck!

    Best regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Edited by Kristin Xie Wednesday, May 18, 2016 7:53 AM
    • Proposed as answer by Kristin Xie Friday, May 27, 2016 9:00 AM
    • Marked as answer by DotNet Wang Monday, May 30, 2016 9:34 AM
    Wednesday, May 18, 2016 7:52 AM