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

@@ -135,7 +135,7 @@ namespace OpenRA.Network
/// <summary>The list of spawnpoints that are disabled for this game</summary>
public readonly int[] DisabledSpawnPoints = { };
public string ModLabel => "{0} ({1})".F(ModTitle, Version);
public string ModLabel => $"{ModTitle} ({Version})";
static object LoadClients(MiniYaml yaml)
{
@@ -200,9 +200,9 @@ namespace OpenRA.Network
.FirstOrDefault(m => m.Id == Mod);
if (guessMod != null)
ModTitle = "{0}".F(guessMod.Title);
ModTitle = guessMod.Title;
else
ModTitle = "Unknown mod: {0}".F(Mod);
ModTitle = $"Unknown mod: {Mod}";
}
}