private readonly string template = "Warning: {0} is passed empty in: {1}";
MethodWhichNeedsToLog1();
MethodWhichNeedsToLog2();
private void MethodWhichNeedsToLog1()
PrivateHelperWhichActuallyLogsEmptyStoreNumber("0007", "some specific names to method 1");
private void MethodWhichNeedsToLog2()
PrivateHelperWhichActuallyLogsEmptyStoreNumber("3366", "some specific names to method 2");
private void PrivateHelperWhichActuallyLogsEmptyStoreNumber(string storeNumber, string specificMethodNames)
Console.WriteLine(String.Format(template, "nameof(storeNumber)[placeholder]", specificMethodNames));