public void updateLocations(String mls) { List <MeetingLocation> mlsList = new List <MeetingLocation>(); String[] args = mls.Split('#'); foreach (String str in args) { MeetingLocation ml = new MeetingLocation(""); ml.decodeSOAP(str); mlsList.Add(ml); } meetingLocations = mlsList; Console.WriteLine("Meeting locations updated."); }