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

@@ -64,12 +64,12 @@ namespace OpenRA.Primitives
if (!data.TryGetValue(t, out var ret))
{
if (throwsIfMissing)
throw new InvalidOperationException("TypeDictionary does not contain instance of type `{0}`".F(t));
throw new InvalidOperationException($"TypeDictionary does not contain instance of type `{t}`");
return null;
}
if (ret.Count > 1)
throw new InvalidOperationException("TypeDictionary contains multiple instances of type `{0}`".F(t));
throw new InvalidOperationException($"TypeDictionary contains multiple instances of type `{t}`");
return ret[0];
}