From 3bc28ba6e29324b2efb9065f7778fb94d7cd0349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 13 Apr 2022 16:44:56 +0200 Subject: [PATCH] Use inline string replacement. --- .../UtilityCommands/CheckExplicitInterfacesCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/UtilityCommands/CheckExplicitInterfacesCommand.cs b/OpenRA.Mods.Common/UtilityCommands/CheckExplicitInterfacesCommand.cs index ecfe0e7dea..3caa765bbd 100644 --- a/OpenRA.Mods.Common/UtilityCommands/CheckExplicitInterfacesCommand.cs +++ b/OpenRA.Mods.Common/UtilityCommands/CheckExplicitInterfacesCommand.cs @@ -104,7 +104,7 @@ namespace OpenRA.Mods.Common.UtilityCommands if (violationCount > 0) { - Console.WriteLine("Explicit interface violations: {0}", violationCount); + Console.WriteLine($"Explicit interface violations: {violationCount}"); Environment.Exit(1); } } @@ -116,7 +116,7 @@ namespace OpenRA.Mods.Common.UtilityCommands void OnViolation(Type implementor, Type interfaceType, MemberInfo violator) { - Console.WriteLine("{0} must explicitly implement the interface member {1}.{2}", implementor.Name, interfaceType.Name, violator.Name); + Console.WriteLine($"{implementor.Name} must explicitly implement the interface member {interfaceType.Name}.{violator.Name}"); violationCount++; } }