public void GetServers() { try { GroupServerList gsl = null; updateDate = DateTime.MinValue; servers = null; if (File.Exists(Serializer.CreateInstance().applicationFolder + "Servers.xml")) { gsl = (Serializer.CreateInstance().DeserializeFromXML(typeof(GroupServerList), "Servers.xml") as GroupServerList); } if (gsl == null) { gsl = GroupServerList.CreateInstance(); } if (gsl.GetServerList(groupName) != null && gsl.GetServerList(groupName).servers.Count != 0) { updateDate = gsl.GetServerList(groupName).updateDate; servers = gsl.GetServerList(groupName).servers; } } catch (Exception exception) { Console.WriteLine(exception.Message); } }