I created a class that's something like this:
public class MovieTheaterList
{
public DateTime Date { get; private set; }
public int NumTheaters { get; private set; }
public Theater[] Theaters { get; private set; }
}
public class Theater
{
public string Name;
}
I want to be able to add items to the Theaters array of the MovieTheaterList class, but when I try to access it, it is showing up as an IEnumerable type and there is no Add() method?
I'm used to using arrays in structs and classes in C/C++, but how can I add a new item to the array in .NET 3.5?