public static void GetXRostersByXStaff(XPress xPress) { List <XRosterType> xRosterTypeList = xPress.GetXRostersByXStaff(STAFF_REFID, OPAQUE_MARKER).Data; foreach (XRosterType o in xRosterTypeList) { Console.WriteLine(o.refId + " | " + o.courseTitle + " | " + o.Metadata.SchoolYear); } }