mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Use string interpolation
This commit is contained in:
parent
b69beda620
commit
6e02ea2c61
5 changed files with 18 additions and 18 deletions
|
|
@ -125,7 +125,7 @@ namespace MapControl
|
|||
{
|
||||
if (!double.TryParse(line, NumberStyles.Float, CultureInfo.InvariantCulture, out double parameter))
|
||||
{
|
||||
throw new ArgumentException("Failed parsing line " + (i + 1) + " in world file \"" + worldFilePath + "\".");
|
||||
throw new ArgumentException($"Failed parsing line {i + 1} in world file {worldFilePath}.");
|
||||
}
|
||||
return parameter;
|
||||
})
|
||||
|
|
@ -133,7 +133,7 @@ namespace MapControl
|
|||
|
||||
if (parameters.Count != 6)
|
||||
{
|
||||
throw new ArgumentException("Insufficient number of parameters in world file \"" + worldFilePath + "\".");
|
||||
throw new ArgumentException($"Insufficient number of parameters in world file {worldFilePath}.");
|
||||
}
|
||||
|
||||
return new Matrix(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue