diff --git a/src/Serilog/Rendering/Padding.cs b/src/Serilog/Rendering/Padding.cs index 23ea8206e..96f3cd1db 100644 --- a/src/Serilog/Rendering/Padding.cs +++ b/src/Serilog/Rendering/Padding.cs @@ -13,13 +13,14 @@ // limitations under the License. using System.IO; +using System.Linq; using Serilog.Parsing; namespace Serilog.Rendering { static class Padding { - static readonly char[] PaddingChars = new string(' ', 80).ToCharArray(); + static readonly char[] PaddingChars = Enumerable.Repeat(' ', 80).ToArray(); /// /// Writes the provided value to the output, applying direction-based padding when is provided.