Some comments

This commit is contained in:
ClemensFischer 2024-04-11 15:59:07 +02:00
parent e642846e7d
commit fd2f09a078
5 changed files with 17 additions and 4 deletions

View file

@ -52,6 +52,9 @@ namespace MapControl
return string.Format(CultureInfo.InvariantCulture, "{0:F5},{1:F5}", Latitude, Longitude);
}
/// <summary>
/// Creates a Location instance from a string containing a comma-separated pair of floating point numbers.
/// </summary>
public static Location Parse(string location)
{
string[] values = null;
@ -63,7 +66,7 @@ namespace MapControl
if (values?.Length != 2)
{
throw new FormatException("Location string must be a comma-separated pair of floating point numbers.");
throw new FormatException("Location string must contain a comma-separated pair of floating point numbers.");
}
return new Location(