public Database() { GolfCourses = new ICourseInfos(); //You could either put some code here to get the complete database at the //start or you could make a mehtod that needs to be called explicitly to //do it. This database, even after years of playing, would be very small. //Caching the whole thing in memory is not a big deal. //This simulates getting the data from a database. GetGolfCourses(); }
// constructor. make the collection public mEnum(ICourseInfos coll) { collection = coll; nIndex = -1; }