public static void GetXLeasByXContact(XPress xPress) { List <XLeaType> xLeaTypeList = xPress.GetXLeasByXContact(CONTACT_REFID, OPAQUE_MARKER).Data; foreach (XLeaType o in xLeaTypeList) { Console.WriteLine(o.refId + " | " + o.leaName + " | " + o.Metadata.SchoolYear); } }