I\'m often frustrated by the System.Diagnostics.Debug.Write/WriteLine methods. I would like to use the Write/WriteLine methods familiar from the TextWriter class, so I ofte
With C# 6 and later versions string interpolation is the answer for most formatting of strings. So the example would look like:
Debug.WriteLine($"# entries {countOfEntries} for connection {connection}");