public List <Territory> TerritoryListFrom(GoogleMapsKml kml) { try { return(TerritoriesFrom(kml.Document)); } catch (Exception) { throw; } }
public void Save(string fileName, GoogleMapsKml kml) { if (string.IsNullOrWhiteSpace(fileName)) { return; } var serializer = new XmlSerializer(typeof(GoogleMapsKml)); var stream = File.Create(fileName); serializer.Serialize(stream, kml); stream.Flush(); stream.Close(); }