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

@ -44,6 +44,9 @@ namespace MapControl
public virtual Location Center => new Location((South + North) / 2d, (West + East) / 2d);
/// <summary>
/// Creates a BoundingBox instance from a string containing a comma-separated sequence of four floating point numbers.
/// </summary>
public static BoundingBox Parse(string boundingBox)
{
string[] values = null;
@ -55,7 +58,7 @@ namespace MapControl
if (values?.Length != 4)
{
throw new FormatException("BoundingBox string must be a comma-separated list of four floating point numbers.");
throw new FormatException("BoundingBox string must contain a comma-separated sequence of four floating point numbers.");
}
return new BoundingBox(