private void iterateListOfCourses(GenericCourse co)
        {
            var crsOp = co as CourseOption;

            co.GetFootnotes(this.Footnotes);
            foreach (GenericCourse crs in crsOp.Courses)
            {
                getAllFootnotes(crs);
            }
        }
 private void getAllFootnotes(GenericCourse root)
 {
     if (root is CourseOption)
     {
         iterateListOfCourses(root);
     }
     else
     {
         root.GetFootnotes(this.Footnotes);
     }
 }