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

@@ -82,7 +82,7 @@ namespace OpenRA.Platforms.Default
{
VerifyThreadAffinity();
if (!Exts.IsPowerOf2(width) || !Exts.IsPowerOf2(height))
throw new InvalidDataException("Non-power-of-two array {0}x{1}".F(width, height));
throw new InvalidDataException($"Non-power-of-two array {width}x{height}");
Size = new Size(width, height);
unsafe
@@ -100,7 +100,7 @@ namespace OpenRA.Platforms.Default
var height = colors.GetUpperBound(0) + 1;
if (!Exts.IsPowerOf2(width) || !Exts.IsPowerOf2(height))
throw new InvalidDataException("Non-power-of-two array {0}x{1}".F(width, height));
throw new InvalidDataException($"Non-power-of-two array {width}x{height}");
Size = new Size(width, height);
unsafe
@@ -180,7 +180,7 @@ namespace OpenRA.Platforms.Default
{
VerifyThreadAffinity();
if (!Exts.IsPowerOf2(width) || !Exts.IsPowerOf2(height))
throw new InvalidDataException("Non-power-of-two array {0}x{1}".F(width, height));
throw new InvalidDataException($"Non-power-of-two array {width}x{height}");
Size = new Size(width, height);
SetData(IntPtr.Zero, width, height);