BikeInCity.Utils.LocationsConverter.ConvertBack C# (CSharp) Метод

ConvertBack() публичный Метод

Converts a value.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value that is produced by the binding target.
targetType System.Type The type to convert to.
parameter object The converter parameter to use.
culture System.Globalization.CultureInfo The culture to use in the converter.
Результат object
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var collection = (LocationCollection)value;
              List<Coordinate> coordinates = new List<Coordinate>(collection.Count);
              foreach(GeoCoordinate coord in collection){
            coordinates.Add(new Coordinate(coord.Latitude,coord.Longitude));
              }
              return coordinates;
        }
LocationsConverter