コード例 #1
0
ファイル: Form1.cs プロジェクト: fabestine1/MyThing
        private List <Course> CoursesWillTakePlace()
        {
            List <Course> temp = new List <Course>();

            foreach (Course c in mySchool.GetAllCourses())
            {
                if (c is ClassroomCourse)
                {
                    if (((ClassroomCourse)c).WillTakePlace())
                    {
                        temp.Add(c);
                    }
                }
                else
                {
                    temp.Add(c);
                }
            }
            return(temp);
        }