private RouteStop[] GenerateRouteStop() { if (Addresses.Count > 0 || Addresses != null) { var routes = new RouteStop[Addresses.Count]; int i = 0; foreach (var address in Addresses) { var RoutePoint = new RouteService.Point { x = address.Point.x, y = address.Point.y }; routes[i++] = new RouteStop { description = address.ToString(), point = RoutePoint }; } return routes; } else throw new ArgumentNullException("Adresses"); }