public static void GetXCoursesByXLea(XPress xPress) { List <XCourseType> xCourseTypeList = xPress.GetXCoursesByXLea(LEA_REFID, OPAQUE_MARKER).Data; foreach (XCourseType o in xCourseTypeList) { Console.WriteLine(o.refId + " | " + o.courseTitle + " | " + o.Metadata.SchoolYear); } }