Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 551 Bytes

test.md

File metadata and controls

29 lines (23 loc) · 551 Bytes
using System.Collections.Generic;

namespace PersonaGrata
{
    public class Location
    {
        public List<Coordinate> Coordinates { get; set; }

        public override string ToString()
        {
            string result = string.Empty;

            if (Coordinates.Count > 0)
            {
                result += $"    Coordinates:\n";

                foreach (var item in Coordinates)
                {
                    result += $"{item}";
                }
            }

            return result;
        }

    }
}