ToDoubleTolerate() public static method

public static ToDoubleTolerate ( String input ) : double
input String
return double
Ejemplo n.º 1
0
        public static List <Station> ProcessManualCity(String path)
        {
            XDocument xDoc = XDocument.Load(path);

            var stations = (from station in xDoc.Descendants("station")
                            select new Station
            {
                Address = station.Attribute("name").Value,
                Lat = WebUtils.ToDoubleTolerate(station.Attribute("lat").Value),
                Lng = WebUtils.ToDoubleTolerate(station.Attribute("lng").Value),
                Free = -1
            }).ToList();

            return(stations);
        }