ObservableCollection in C#
What's the best way to populate a collection with multiple data?

    var query = (from p in obsDay select p);
                        foreach (var item in query)
                        {
                        facultyTime.Add(new TimePerDay() { subjTime = new ObservableCollection<TimeSpan> { item.courseTimeStart } }); 
                        }
                        availProf[randomNumber].actualTime = facultyTime;

I tried this one but it only adds one data on my collection? What am I doing wrong?


ObservableCollection in C#
===

What's the best way to populate a collection with multiple data?

    var query = (from p in obsDay select p);
                        foreach (var item in query)
                        {
                        facultyTime.Add(new TimePerDay() { subjTime = new ObservableCollection<TimeSpan> { item.courseTimeStart } }); 
                        }
                        availProf[randomNumber].actualTime = facultyTime;

I tried this one but it only adds one data on my collection? What am I doing wrong?

