NullReferenceException in c#?

i write a program whose code is too large to be contained in yahoo answer forum, so i have to explain orally, i declare two classes DataItem and Dataset, DataItem class contain a data variable which is an array of double and a function called InitializeData()function, that assign length to array of data, i also declare a Dataset class that have an array of DataItem and a function called InitializeDataset that instiantiate member variable DataItems array by copying an inner variable with specified length to array, i create a program that simulate dataset that is initialized with many dataitems, and each dataitem with many double numbers, but it indicate me exception, referencing object that do not instantiate them, what is the problem and how do i fix it

1 Answer

Still have questions? Get answers by asking now.