Use string interpolation in debug output

This commit is contained in:
Clemens 2021-07-06 18:49:48 +02:00
parent 7aaa4ed25e
commit c0d3635317
19 changed files with 47 additions and 47 deletions

View file

@ -51,7 +51,7 @@ namespace MapControl.Caching
}
catch (Exception ex)
{
Debug.WriteLine("FileDbCache.GetCount(): " + ex.Message);
Debug.WriteLine($"FileDbCache.GetCount(): {ex.Message}");
}
return 0;
@ -75,7 +75,7 @@ namespace MapControl.Caching
}
catch (Exception ex)
{
Debug.WriteLine("FileDbCache.Contains({0}): {1}", key, ex.Message);
Debug.WriteLine($"FileDbCache.Contains({key}): {ex.Message}");
}
return false;
@ -180,7 +180,7 @@ namespace MapControl.Caching
}
catch (Exception ex)
{
Debug.WriteLine("FileDbCache.Remove({0}): {1}", key, ex.Message);
Debug.WriteLine($"FileDbCache.Remove({key}): {ex.Message}");
}
}