Replace F extension with string interpolation

This commit is contained in:
teinarss
2021-04-24 17:46:24 +02:00
committed by reaperrr
parent 1385aca783
commit 10676be377
300 changed files with 752 additions and 799 deletions

View File

@@ -98,10 +98,10 @@ namespace OpenRA.Mods.Cnc.Graphics
{
if (models.ContainsKey(model))
throw new InvalidOperationException(
"Model `{0}` does not have a sequence `{1}`".F(model, sequence));
$"Model `{model}` does not have a sequence `{sequence}`");
else
throw new InvalidOperationException(
"Model `{0}` does not have any sequences defined.".F(model));
$"Model `{model}` does not have any sequences defined.");
}
}
@@ -109,7 +109,7 @@ namespace OpenRA.Mods.Cnc.Graphics
{
if (!models.ContainsKey(model))
throw new InvalidOperationException(
"Model `{0}` does not have any sequences defined.".F(model));
$"Model `{model}` does not have any sequences defined.");
return models[model].ContainsKey(sequence);
}