Relative Content

Tag Archive for c#listdata-collection

In my C# project I cannot add new items to my data collection with .Append. What could be the problem?

I am using a data collection for a data series of a chart. The data collection has a “day” member for the charts X axis, and “value” member for the charts Y axis.
When I add the items to the data collection like following it is not working.The data collection remains empty and I get System.NullReferenceException when I try to reach the elements of it.
(Method FillData is called initialy in my app.)